SlideShare a Scribd company logo
1 of 6
Need these two done within 2 hours.
Question 3515
pts
(TCO 5, 6, 9) Discuss the importance of implementing
transactions in web applications. Describe the COMMIT, and
ROLLBACK command. In the following SaveEmployee
function below, add code to insert the first name, last name, and
pay rate into the tblEmployee table. In the database the column
names are: FirstName, LastName, PayRate. Also, write the code
to commit the transaction.
public static bool SaveEmployee(string Database, string
FirstName, string LastName, string PayRate)
{
bool recordSaved;
try
{
OleDbTransaction myTransaction = null;
OleDbConnection conn = new
OleDbConnection("PROVIDER=Microsoft.ACE.OLEDB.12.0;"
+"Data Source=" +Database);
conn.Open();
OleDbCommand command = conn.CreateCommand();
string strSQL;
myTransaction = conn.BeginTransaction();
command.Transaction = myTransaction;
// Write the code below to insert the first name, last name, and
pay rate into the tblEmployee table
_____________________________________________________
// Add your comments here
command.CommandType = CommandType.Text;
command.CommandText = strSQL;
// Add your comments here
command.ExecuteNonQuery();
// Write the code below to commit the transaction
_____________________________________________________
__
// Add your comments here
conn.Close();
recordSaved = true;
}
catch (Exception ex)
{
myTransaction.Rollback();
recordSaved = false;
}
return recordSaved;
}
HTML Editor
Keyboard Shortcuts
12pt
Paragraph
p
Flag this Question
Question 3615
pts
(TCO 8, 9) Explain Secure Sockets Layer, authentication, and
authorization. Discuss advantages of using validation controls
and discuss the RequiredFieldValidator and the
RegularExpressionValidator in particular.
HTML Editor
Keyboard Shortcuts
12pt
Paragraph
Implement transactions, commit, rollback in web app SaveEmployee function

More Related Content

Similar to Implement transactions, commit, rollback in web app SaveEmployee function

New Features of SQL Server 2016
New Features of SQL Server 2016New Features of SQL Server 2016
New Features of SQL Server 2016Mir Mahmood
 
Make sure to make a copy of the Google Doc for this lab into.pdf
Make sure to make a copy of the Google Doc for this lab into.pdfMake sure to make a copy of the Google Doc for this lab into.pdf
Make sure to make a copy of the Google Doc for this lab into.pdfadityastores21
 
Fast Web Applications Development with Ruby on Rails on Oracle
Fast Web Applications Development with Ruby on Rails on OracleFast Web Applications Development with Ruby on Rails on Oracle
Fast Web Applications Development with Ruby on Rails on OracleRaimonds Simanovskis
 
Linq E Ef 1207668728621762 9
Linq E Ef 1207668728621762 9Linq E Ef 1207668728621762 9
Linq E Ef 1207668728621762 9google
 
please code in c#- please note that im a complete beginner- northwind.docx
please code in c#- please note that im a complete beginner-  northwind.docxplease code in c#- please note that im a complete beginner-  northwind.docx
please code in c#- please note that im a complete beginner- northwind.docxAustinaGRPaigey
 
MongoDB - How to model and extract your data
MongoDB - How to model and extract your dataMongoDB - How to model and extract your data
MongoDB - How to model and extract your dataFrancesco Lo Franco
 
This is part 1 of 3STEP 1 Modify the clsDataLayer to Use a Two-St.docx
This is part 1 of 3STEP 1 Modify the clsDataLayer to Use a Two-St.docxThis is part 1 of 3STEP 1 Modify the clsDataLayer to Use a Two-St.docx
This is part 1 of 3STEP 1 Modify the clsDataLayer to Use a Two-St.docxabhi353063
 
R Tanenbaum .Net Portfolio
R Tanenbaum .Net PortfolioR Tanenbaum .Net Portfolio
R Tanenbaum .Net PortfolioRobert Tanenbaum
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answersdebarghyamukherjee60
 
1 Database Security Lab 2 – Virtual Private Database.docx
1 Database Security Lab 2 – Virtual Private Database.docx1 Database Security Lab 2 – Virtual Private Database.docx
1 Database Security Lab 2 – Virtual Private Database.docxjeremylockett77
 
Function Procedure Trigger Partition.pdf
Function Procedure Trigger Partition.pdfFunction Procedure Trigger Partition.pdf
Function Procedure Trigger Partition.pdfSanam Maharjan
 
Database Development Replication Security Maintenance Report
Database Development Replication Security Maintenance ReportDatabase Development Replication Security Maintenance Report
Database Development Replication Security Maintenance Reportnyin27
 
解决Ora 14098分区交换索引不匹配错误
解决Ora 14098分区交换索引不匹配错误解决Ora 14098分区交换索引不匹配错误
解决Ora 14098分区交换索引不匹配错误maclean liu
 

Similar to Implement transactions, commit, rollback in web app SaveEmployee function (20)

New Features of SQL Server 2016
New Features of SQL Server 2016New Features of SQL Server 2016
New Features of SQL Server 2016
 
Make sure to make a copy of the Google Doc for this lab into.pdf
Make sure to make a copy of the Google Doc for this lab into.pdfMake sure to make a copy of the Google Doc for this lab into.pdf
Make sure to make a copy of the Google Doc for this lab into.pdf
 
Thunderstruck
ThunderstruckThunderstruck
Thunderstruck
 
Fast Web Applications Development with Ruby on Rails on Oracle
Fast Web Applications Development with Ruby on Rails on OracleFast Web Applications Development with Ruby on Rails on Oracle
Fast Web Applications Development with Ruby on Rails on Oracle
 
Linq E Ef 1207668728621762 9
Linq E Ef 1207668728621762 9Linq E Ef 1207668728621762 9
Linq E Ef 1207668728621762 9
 
Rhino Mocks
Rhino MocksRhino Mocks
Rhino Mocks
 
please code in c#- please note that im a complete beginner- northwind.docx
please code in c#- please note that im a complete beginner-  northwind.docxplease code in c#- please note that im a complete beginner-  northwind.docx
please code in c#- please note that im a complete beginner- northwind.docx
 
Clean code
Clean codeClean code
Clean code
 
Less09 Data
Less09 DataLess09 Data
Less09 Data
 
MongoDB - How to model and extract your data
MongoDB - How to model and extract your dataMongoDB - How to model and extract your data
MongoDB - How to model and extract your data
 
This is part 1 of 3STEP 1 Modify the clsDataLayer to Use a Two-St.docx
This is part 1 of 3STEP 1 Modify the clsDataLayer to Use a Two-St.docxThis is part 1 of 3STEP 1 Modify the clsDataLayer to Use a Two-St.docx
This is part 1 of 3STEP 1 Modify the clsDataLayer to Use a Two-St.docx
 
R Tanenbaum .Net Portfolio
R Tanenbaum .Net PortfolioR Tanenbaum .Net Portfolio
R Tanenbaum .Net Portfolio
 
Class 12 computer sample paper with answers
Class 12 computer sample paper with answersClass 12 computer sample paper with answers
Class 12 computer sample paper with answers
 
Beg sql
Beg sqlBeg sql
Beg sql
 
Beg sql
Beg sqlBeg sql
Beg sql
 
1 Database Security Lab 2 – Virtual Private Database.docx
1 Database Security Lab 2 – Virtual Private Database.docx1 Database Security Lab 2 – Virtual Private Database.docx
1 Database Security Lab 2 – Virtual Private Database.docx
 
Function Procedure Trigger Partition.pdf
Function Procedure Trigger Partition.pdfFunction Procedure Trigger Partition.pdf
Function Procedure Trigger Partition.pdf
 
Database Development Replication Security Maintenance Report
Database Development Replication Security Maintenance ReportDatabase Development Replication Security Maintenance Report
Database Development Replication Security Maintenance Report
 
解决Ora 14098分区交换索引不匹配错误
解决Ora 14098分区交换索引不匹配错误解决Ora 14098分区交换索引不匹配错误
解决Ora 14098分区交换索引不匹配错误
 
4sem dbms(1)
4sem dbms(1)4sem dbms(1)
4sem dbms(1)
 

More from migdalialyle

Indicate whether each of the following statements is true or false.docx
Indicate whether each of the following statements is true or false.docxIndicate whether each of the following statements is true or false.docx
Indicate whether each of the following statements is true or false.docxmigdalialyle
 
Include recommendations on how the Kelsey Elementary School should d.docx
Include recommendations on how the Kelsey Elementary School should d.docxInclude recommendations on how the Kelsey Elementary School should d.docx
Include recommendations on how the Kelsey Elementary School should d.docxmigdalialyle
 
Include an introductionDescribe Final System Acceptance Criteria.docx
Include an introductionDescribe Final System Acceptance Criteria.docxInclude an introductionDescribe Final System Acceptance Criteria.docx
Include an introductionDescribe Final System Acceptance Criteria.docxmigdalialyle
 
Include the following Complete summary of the case study that ide.docx
Include the following Complete summary of the case study that ide.docxInclude the following Complete summary of the case study that ide.docx
Include the following Complete summary of the case study that ide.docxmigdalialyle
 
Incentives and Their Effects Please respond to the followingR.docx
Incentives and Their Effects Please respond to the followingR.docxIncentives and Their Effects Please respond to the followingR.docx
Incentives and Their Effects Please respond to the followingR.docxmigdalialyle
 
In your own words, using two approaches, contrast global tax syste.docx
In your own words, using two approaches, contrast global tax syste.docxIn your own words, using two approaches, contrast global tax syste.docx
In your own words, using two approaches, contrast global tax syste.docxmigdalialyle
 
In your textbook, Feenstra (2011) states, As we explore persuasion,.docx
In your textbook, Feenstra (2011) states, As we explore persuasion,.docxIn your textbook, Feenstra (2011) states, As we explore persuasion,.docx
In your textbook, Feenstra (2011) states, As we explore persuasion,.docxmigdalialyle
 
In your own words, relate the importance of the current account (f.docx
In your own words, relate the importance of the current account (f.docxIn your own words, relate the importance of the current account (f.docx
In your own words, relate the importance of the current account (f.docxmigdalialyle
 
In your own words, relate the importance of the financial account .docx
In your own words, relate the importance of the financial account .docxIn your own words, relate the importance of the financial account .docx
In your own words, relate the importance of the financial account .docxmigdalialyle
 
In your own words, relate the Fisher Effect to exchange rates. .docx
In your own words, relate the Fisher Effect to exchange rates. .docxIn your own words, relate the Fisher Effect to exchange rates. .docx
In your own words, relate the Fisher Effect to exchange rates. .docxmigdalialyle
 
In your own words, formulate strategies that can be used by MNEs t.docx
In your own words, formulate strategies that can be used by MNEs t.docxIn your own words, formulate strategies that can be used by MNEs t.docx
In your own words, formulate strategies that can be used by MNEs t.docxmigdalialyle
 
In your own words, explain why debt markets are important to optim.docx
In your own words, explain why debt markets are important to optim.docxIn your own words, explain why debt markets are important to optim.docx
In your own words, explain why debt markets are important to optim.docxmigdalialyle
 
In your own words, relate the asset market approach to forecasting.docx
In your own words, relate the asset market approach to forecasting.docxIn your own words, relate the asset market approach to forecasting.docx
In your own words, relate the asset market approach to forecasting.docxmigdalialyle
 
In your own words, explain the importance of diversification in th.docx
In your own words, explain the importance of diversification in th.docxIn your own words, explain the importance of diversification in th.docx
In your own words, explain the importance of diversification in th.docxmigdalialyle
 
In your own words, explain how a value-added-tax works. Yo.docx
In your own words, explain how a value-added-tax works. Yo.docxIn your own words, explain how a value-added-tax works. Yo.docx
In your own words, explain how a value-added-tax works. Yo.docxmigdalialyle
 
In your own words, distinguish different strategies for global exp.docx
In your own words, distinguish different strategies for global exp.docxIn your own words, distinguish different strategies for global exp.docx
In your own words, distinguish different strategies for global exp.docxmigdalialyle
 
In your own words, relate Interest Rate Parity to exchange rate mo.docx
In your own words, relate Interest Rate Parity to exchange rate mo.docxIn your own words, relate Interest Rate Parity to exchange rate mo.docx
In your own words, relate Interest Rate Parity to exchange rate mo.docxmigdalialyle
 
In your own words, distinguish the characteristics of debt instrum.docx
In your own words, distinguish the characteristics of debt instrum.docxIn your own words, distinguish the characteristics of debt instrum.docx
In your own words, distinguish the characteristics of debt instrum.docxmigdalialyle
 
In your own words, distinguish between two proactive methods of ma.docx
In your own words, distinguish between two proactive methods of ma.docxIn your own words, distinguish between two proactive methods of ma.docx
In your own words, distinguish between two proactive methods of ma.docxmigdalialyle
 

More from migdalialyle (20)

Indicate whether each of the following statements is true or false.docx
Indicate whether each of the following statements is true or false.docxIndicate whether each of the following statements is true or false.docx
Indicate whether each of the following statements is true or false.docx
 
Include recommendations on how the Kelsey Elementary School should d.docx
Include recommendations on how the Kelsey Elementary School should d.docxInclude recommendations on how the Kelsey Elementary School should d.docx
Include recommendations on how the Kelsey Elementary School should d.docx
 
Include an introductionDescribe Final System Acceptance Criteria.docx
Include an introductionDescribe Final System Acceptance Criteria.docxInclude an introductionDescribe Final System Acceptance Criteria.docx
Include an introductionDescribe Final System Acceptance Criteria.docx
 
Include the following Complete summary of the case study that ide.docx
Include the following Complete summary of the case study that ide.docxInclude the following Complete summary of the case study that ide.docx
Include the following Complete summary of the case study that ide.docx
 
Incentives and Their Effects Please respond to the followingR.docx
Incentives and Their Effects Please respond to the followingR.docxIncentives and Their Effects Please respond to the followingR.docx
Incentives and Their Effects Please respond to the followingR.docx
 
In.docx
In.docxIn.docx
In.docx
 
In your own words, using two approaches, contrast global tax syste.docx
In your own words, using two approaches, contrast global tax syste.docxIn your own words, using two approaches, contrast global tax syste.docx
In your own words, using two approaches, contrast global tax syste.docx
 
In your textbook, Feenstra (2011) states, As we explore persuasion,.docx
In your textbook, Feenstra (2011) states, As we explore persuasion,.docxIn your textbook, Feenstra (2011) states, As we explore persuasion,.docx
In your textbook, Feenstra (2011) states, As we explore persuasion,.docx
 
In your own words, relate the importance of the current account (f.docx
In your own words, relate the importance of the current account (f.docxIn your own words, relate the importance of the current account (f.docx
In your own words, relate the importance of the current account (f.docx
 
In your own words, relate the importance of the financial account .docx
In your own words, relate the importance of the financial account .docxIn your own words, relate the importance of the financial account .docx
In your own words, relate the importance of the financial account .docx
 
In your own words, relate the Fisher Effect to exchange rates. .docx
In your own words, relate the Fisher Effect to exchange rates. .docxIn your own words, relate the Fisher Effect to exchange rates. .docx
In your own words, relate the Fisher Effect to exchange rates. .docx
 
In your own words, formulate strategies that can be used by MNEs t.docx
In your own words, formulate strategies that can be used by MNEs t.docxIn your own words, formulate strategies that can be used by MNEs t.docx
In your own words, formulate strategies that can be used by MNEs t.docx
 
In your own words, explain why debt markets are important to optim.docx
In your own words, explain why debt markets are important to optim.docxIn your own words, explain why debt markets are important to optim.docx
In your own words, explain why debt markets are important to optim.docx
 
In your own words, relate the asset market approach to forecasting.docx
In your own words, relate the asset market approach to forecasting.docxIn your own words, relate the asset market approach to forecasting.docx
In your own words, relate the asset market approach to forecasting.docx
 
In your own words, explain the importance of diversification in th.docx
In your own words, explain the importance of diversification in th.docxIn your own words, explain the importance of diversification in th.docx
In your own words, explain the importance of diversification in th.docx
 
In your own words, explain how a value-added-tax works. Yo.docx
In your own words, explain how a value-added-tax works. Yo.docxIn your own words, explain how a value-added-tax works. Yo.docx
In your own words, explain how a value-added-tax works. Yo.docx
 
In your own words, distinguish different strategies for global exp.docx
In your own words, distinguish different strategies for global exp.docxIn your own words, distinguish different strategies for global exp.docx
In your own words, distinguish different strategies for global exp.docx
 
In your own words, relate Interest Rate Parity to exchange rate mo.docx
In your own words, relate Interest Rate Parity to exchange rate mo.docxIn your own words, relate Interest Rate Parity to exchange rate mo.docx
In your own words, relate Interest Rate Parity to exchange rate mo.docx
 
In your own words, distinguish the characteristics of debt instrum.docx
In your own words, distinguish the characteristics of debt instrum.docxIn your own words, distinguish the characteristics of debt instrum.docx
In your own words, distinguish the characteristics of debt instrum.docx
 
In your own words, distinguish between two proactive methods of ma.docx
In your own words, distinguish between two proactive methods of ma.docxIn your own words, distinguish between two proactive methods of ma.docx
In your own words, distinguish between two proactive methods of ma.docx
 

Recently uploaded

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

Implement transactions, commit, rollback in web app SaveEmployee function

  • 1. Need these two done within 2 hours. Question 3515 pts (TCO 5, 6, 9) Discuss the importance of implementing transactions in web applications. Describe the COMMIT, and ROLLBACK command. In the following SaveEmployee function below, add code to insert the first name, last name, and pay rate into the tblEmployee table. In the database the column names are: FirstName, LastName, PayRate. Also, write the code to commit the transaction. public static bool SaveEmployee(string Database, string FirstName, string LastName, string PayRate) { bool recordSaved; try { OleDbTransaction myTransaction = null; OleDbConnection conn = new OleDbConnection("PROVIDER=Microsoft.ACE.OLEDB.12.0;" +"Data Source=" +Database); conn.Open(); OleDbCommand command = conn.CreateCommand();
  • 2. string strSQL; myTransaction = conn.BeginTransaction(); command.Transaction = myTransaction; // Write the code below to insert the first name, last name, and pay rate into the tblEmployee table _____________________________________________________ // Add your comments here command.CommandType = CommandType.Text; command.CommandText = strSQL; // Add your comments here command.ExecuteNonQuery(); // Write the code below to commit the transaction _____________________________________________________ __ // Add your comments here conn.Close();
  • 3. recordSaved = true; } catch (Exception ex) { myTransaction.Rollback(); recordSaved = false; } return recordSaved; } HTML Editor Keyboard Shortcuts
  • 4. 12pt Paragraph p Flag this Question Question 3615 pts (TCO 8, 9) Explain Secure Sockets Layer, authentication, and authorization. Discuss advantages of using validation controls and discuss the RequiredFieldValidator and the
  • 5. RegularExpressionValidator in particular. HTML Editor Keyboard Shortcuts 12pt Paragraph