Way of updating a table other than stored procedure and
hard coded query?
Answers were Sorted based on User's Feedback
Answer / javed khan
The SqlDataAdapter enables us to fill a DataSet and Update changes back to the data base.We don't have to worry about opening and closing the SqlConnection, writing update command because the SqlDataAdapter does it automatically. A SqlCommandBuilder populates insert, update, and delete commands based on the SqlDataAdapter's select statement. Use the Fill method of the SqlDataAdapter to fill a DataSet with data. Call the SqlDataAdapter's Update method to push changes back to a data base.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / raviraj
Try with transactions whose code is terse and comprehensive.
transactions offer the best alternative solutions for
updating the table content.You can either commit or
rollback the transcation by using T-sql update cpmmand in
the explicit transcation based on the where condition.
Is This Answer Correct ? | 1 Yes | 1 No |
I have one application, one user purchase some products in my application? and another person came he is also purchase some products?how can we identify which user purchase which items? my answer is by using session id? but i dont know how? can u give me programming for that?
can i call the java script to code behind file?if yes how?
What are cao and sao.
How do we sort the data from a dataset?
What is difference between URL and URI?
What is the use of worker process in asp.net?
Less than one page, how many windows will you be able to maintain?
What is advantage of code behind coding in ASP.NET?
0 Answers Sans Pareil IT Services,
What is preprocessor in .net?
Explain the function of new view engine in asp.net? : asp.net mvc
What are the various authentication mechanisms in ASP.NET ?
1 Answers Digital GlobalSoft, Satyam,
How do you deploy your asp.net application?