ADO.NET interview questions


Total available count: 25
Subject - Microsoft Technologies
Subsubject - ADO.NET

What is the difference between DataSet.Copy() and DataSet.Clone()?

DataSet.Copy() and DataSet.Clone() are different kind of DataSet methods which are useful to copy the data and structure and one DataSet to another DataSet.
 
DataSet.Copy():  DataSet.Copy() copies both the data and structure of the DataSet.
Code Practise:
DataSety = DataSetx.Copy();

DataSet.Clone(): DataSet.Clone() copies only structure of the DataSet.

Code Practise:
DataSety = DataSetx.Clone();

 




Next 5 interview question(s)

1
What is the full-form of ADO?
2
What is the importance of ExecuteNonQuery, ExecuteReader and ExecuteScalar methods in SqlCommand?
3
What is the meaning of object pooling?
4
What is the purpose of database transactions?
5
What is the use of SqlParameter.Direction?


Comments