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 |
write a sample code make use of xmltext writer
Write the different features of a Thread and a Process?
How information about the user's locale can be accessed?
Can we use html in asp.net?
Explain how cookies work. Give an example of cookie abuse.
What is the use of placeholder control?
How Response.flush works in server.Execute ?
1 Answers Keane India Ltd, TCS,
Difference between mvc2 and mvc3 in asp.net?
What is WebService ?
8 Answers Tanla Solutions, Yahoo,
How does session work?
What methods are fired during the page load?
What is deff. saop and disco?