Top ADO.NET Interview Questions :: ALLInterview.com http://www.allinterview.com Top ADO.NET Interview Questions en-us Difference between datareader and dataset? http://www.allinterview.com/showanswers/33026.html Data Reader is a forward only and read only data DataSet is used to maintain relationships between multiple tables. Data Reader can't persist the data Data Set can persist the data How to add Primary key in DataSet http://www.allinterview.com/showanswers/23120.html In eidt dataset designer right click on column name which u want as primary key and set it as pk what is Execute NOn Query? http://www.allinterview.com/showanswers/57078.html Execute non Query is used to execute more than one command at the time (it is used for insert ,delete ,update) can we have multiple datatables in a datareader ? http://www.allinterview.com/showanswers/16653.html No we can't, multiple datatables can be used in dataset. what is data Adapter? http://www.allinterview.com/showanswers/32674.html manage the data Call a stored procedure from ado.net and pass parameter to it ? http://www.allinterview.com/showanswers/20530.html create con as connection object,cmd as command object cmd.CommandType=CommandType.Storedprocedure cmd.CommandText="storedprecedurename" cmd.ExecuteNonQuery() What's the difference between Dataset.clone and Dataset.copy? http://www.allinterview.com/showanswers/6574.html Clone :- It only copies structure, does not copy data. Copy :- Copies both Structure and data If a dataset contains 100 rows, how to fetch rows between 10 and 20 o http://www.allinterview.com/showanswers/4733.html Dataset consists of DataTable collection which consists of DataRows. Create Dataset object, then create DataRow object Dim objRow as New DataRow objRow(9) to objTow(19) woud give the rows between 10 and 20, as first row is stored with index Difference between DataReader and DataAdapter / DataSet and DataAdapt http://www.allinterview.com/showanswers/4722.html Let’s take a look at the differences between ADO Recordset and ADO.Net DataSet: 1. Table Collection: ADO Recordset provides the ability to navigate through a single table of information. That table would have been formed with a join of multiple What provider ADO.net use by default? http://www.allinterview.com/showanswers/33095.html The below link gives the answer for this question. ADO.NET does not default to anything. http://www.devnewsgroups.net/group/microsoft.public.dotnet.f ramework.adonet/topic43724.aspx How to sort the data in Datatable http://www.allinterview.com/showanswers/23119.html pass the datatable in dataview object and call the sort method on dataview dataview dv=new dataview(dt) dv.sort that's it Difference between ADO and ADO.net ? http://www.allinterview.com/showanswers/20700.html ADO and ADO.NET are different in several ways: ? ADO works with connected data. This means that when you access data, such as viewing and updating data, it is real-time, with a connection being used all the time. This is barring, of course, yo what is Sql Native Client? http://www.allinterview.com/showanswers/36627.html SQL NATIVE CLIENT is a Provider used to Connect with the SQL Server database. Explain the ADO . Net Architecture ? http://www.allinterview.com/showanswers/23319.html ADO.Net is the data access model for .Net ?based applications. It can be used to access relational database systems such as SQL SERVER 2000, Oracle, and many other data sources for which there is an OLD DB or ODBC provider. To a certain exte How To Update A Column In A DataGrid Using C#.NET? I am getting Inv http://www.allinterview.com/showanswers/37134.html Try this query you can avoid InvalidCastException... string strQry = "update customer set lastname=@LastName where id=@VarId"; SqlCommand cmd=new SqlCommand(strQry,con); int varid = (int)DataGrid1.DataKeys[(int)e.Item.ItemIndex]; st