Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started