Question: You are given the database Finaldb which is stored on an MSQL server. Assume : you have a connexion string in the web.config file named

 You are given the database Finaldb" which is stored on an

You are given the database Finaldb" which is stored on an MSQL server. Assume : you have a connexion string in the web.config file named "FinalDB". you have a table "customer" with account (integer), name (character), and balance amount (double). (account is the primary key). Write a C# code to accomplish the following tasks. Clearly indicate which part of the code accomplishes which task. (1) Open a connection to the database (2) Add a record "1112 Ahmed Al-Fudhaili 1200.67" to the table. (3) Read the current amount of account=1112 from the database. (4) Update the current amount by incrementing it by OMR1000.00. (5) What happens if you Add the record "1112 Ahmed Al-Fudhaili 1200.67" to the table more than once. (6) Print all records for customers where the name starts with a letter given by the user (Assume the letter given by the user is already stored in a variable named startLetter)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!