2023 Question 3515 pts TCO 5 6 9 Discuss the importance of implementing transactions in web applications Describe the | Assignment Collections
Computer Science 2023 CIS407 Final
2023 Question 3515 pts TCO 5 6 9 Discuss the importance of implementing transactions in web applications Describe the | Assignment Collections
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;
}
12pt
Paragraph
p
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.
�1��
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.