ADO.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 422 Page Views: 

How do you check number of rows affected by update query?



Posted By: Avi Date: 14 October 2010 05:01:48 AM
 Answer:

ExecuteNonQuery Method on SqlCommand returns number of rows affected.


Posted By: avibtech


Date: 14 October 2010 05:01:48 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image FbSn3l
Related Questions
ADO.Net : How do you reject changes made to data set?

How do you reject changes made to data set?

by calling RejectChanges method
Category: ADO.Net Date: 10/14/2010 5:53:47 AM
ADO.Net : Is it possible to use single code to work with different data providers?

Is it possible to use single code to work with different data providers?

Yes. By using IDbConnection, IDbCommand(you can create command object using IDbConnection.CreateComm....
Category: ADO.Net Date: 10/14/2010 5:01:48 AM
ADO.Net : How do you check number of rows affected by update query?

How do you check number of rows affected by update query?

ExecuteNonQuery Method on SqlCommand returns number of rows affected.
Category: ADO.Net Date: 10/14/2010 5:01:48 AM
ADO.Net : Can DataGridView use DataSet as data source?

Can DataGridView use DataSet as data source?

Yes
Category: ADO.Net Date: 10/14/2010 4:09:47 AM
ADO.Net : What is Entity Framework?

What is Entity Framework?

ADO.NET Entity Framework is an object-relational mappin framework
Category: ADO.Net Date: 10/14/2010 4:09:47 AM