What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More ADO.NET Interview Questions

What is difference between datareader and dataadapter?

0 Answers  


What is the functionality of data provider in ado.net?

0 Answers  


What is ado.net tutorial?

0 Answers  


Difference between DataReader and DataAdapter / DataSet and DataAdapter?

3 Answers   TCS,


Which provider is used to connect ms access, oracle, etc…?

0 Answers  


What is shadow copy?

0 Answers  


Explain the difference in an abstract class and an interface?

0 Answers  


Explain all the classes those are used for database connections between sql server and asp.net?

0 Answers  


How To Update A Column In A DataGrid Using C#.NET? I am getting InvalidCastException as (Specified cast is not valid) while updating 2nd column in a datagrid? Id,firstname,lastname are the three columns of my datagrid respectively. I wanted to edit the second column(lastname) and update it. I did the following code in DataGrid's updatecommand(),but failed to update ! Int varid=(int)DataGrid1.DataKeys[e.Item.ItemIndex]; TextBox lnm=(TextBox)e.Item.Cells[2].Controls[0]; string str=lnm.Text ; SqlCommand cmd=new SqlCommand("update customer set lastname='" + str + "' where id=" + varid + "",con); cmd.ExecuteNonQuery(); DataGrid1.EditItemIndex=- 1; DataGrid1.DataBind();

2 Answers   Mind Tree, TCS,


What is the difference between Datareader and Dataset?

0 Answers  


How to sort the data in Datatable

2 Answers   NetProphet,


Which parameter of ConnectionString is used to specify the name of the database?

0 Answers  


Categories