Top ADO.NET Interview Questions :: ALLInterview.com http://www.allinterview.com Top ADO.NET Interview Questions en-us 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. 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 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 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) 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 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 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 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 data Adapter? http://www.allinterview.com/showanswers/32674.html manage the data 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 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. Differnce between Stored procedure and user defined functions? http://www.allinterview.com/showanswers/33029.html Main difference between sp and function is we cannot use store procedure in select statement where as we can use function in select statement. 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 What is the default view of Data Grid? http://www.allinterview.com/showanswers/35524.html It has default view like a table with columns and rows. 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