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
Types of DataSet in ADO.NET?
2
Explain about Row States and Row Versions?
3
Explain the steps to access the database in ADO.NET?
4
Why will an ASP.NET user account be created in the database for an ASP.NET web application?
5
Can you inherit from SqlConnection class?

Comments