GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  Ado.NET

 Print  |  
Question:  Database Method

Answer: If we are not returning any records from the database, which method is to be used?


November 11, 2008 01:20:48 #5
 kodandaharish   Member Since: November 2008    Total Comments: 1 

RE: Database Method
 
We can use both DataSet as well as SqlCommand object, but as the data is meant only for viewing, we are supposed to use SqlCommandObject.ExecuteNonQuery() for faster performance.
     

 

Back To Question