What are the different namespaces used in the project to
connect the database?
Answers were Sorted based on User's Feedback
Answer / shashikant kothavale
in my project as we used sql server as back end i have used
sqlclient namespace and system io namespace to read
values/data from non database file via comm separated values!
other data providrs are
oledb;
sqlclient;
oraclclient,
odbc etc
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rahul singhal
in vb.net for sql server
imports system.data
imports system.data.oledb
imports system.data.sqlclient
in c# for sql server
using system.data
using system.data.oledb
using system.data.sqlclient
Is This Answer Correct ? | 1 Yes | 0 No |
system.data
system.data.oledb
system.data.sqlclient
Is This Answer Correct ? | 0 Yes | 0 No |
What is microsoft ado?
What do you mean by ‘batch updates’?
What is data adapter in ado.net with example?
What is the provider and namespaces being used to access oracle database?
Diff B/W DataSet vs DataTable
How do I delete a row from a DataTable?
What is a datatable?
8 Answers State Bank Of India SBI,
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();
What is meant by executenonquery?
What are the differences between OLEDB and SQLClient Providers?
What are the connected and disconnected modes in ado.net?
Which architecture does Datasets follow?