Answer Posted / kamalakannan.a
If we use c#
DataTable dt=new DataTable();
DataColumn Dc1 = new DataColumn("No", Type.GetType
("System.Int32"));
dt.Columns.Add(Dc1);
//Set Primary key
DataColumn[] dc = new DataColumn[1];
dc[0] = dt.Columns["No"];
dt.PrimaryKey = dc;
Kamal..
| Is This Answer Correct ? | 34 Yes | 7 No |
Post New Answer View All Answers
What is executequery?
How we can provide data to ado.net?
Does dapper use ado.net?
What is the difference between dataset and datatable?
How does ado.net work?
What is shadow copy?
What is a sqldataadapter?
Explain how can we load multiple tables in to dataset?
Explain the difference between data reader and data set?
What is the provider being used to access oracle database?
What are the steps to connect to a database?
Which is faster datareader or dataadapter?
What is ado oledb and odbc?
What is a dynaset in access?
Is ado.net an orm?