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 |
What is caching in asp.net?
Explain login control and form authentication.
What is a web api endpoint?
What is the differences between a primary key and a unique key in sql server?
Which protocol is used in a web api?
Why is validation always done on the server? When does that occur?
how to add cliet side event to server side? and how to register client script to sever side? wt difference these two
What is the difference between application object and session object?
What is the good practice to implement validations in aspx page?
Can I have a unique key as foreign key?
How many Directives r in ASP.NET?
What is the Difference B/W Finalize() and Dispose() in .Net?
12 Answers HCL, IBM,