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 the difference between data grid and data repeater?
What are all the different methods under sqlcommand?
Explain what are acid properties?
Explain which name space is used to get assembly details?
What are good ado.net object to replace to ado recordset object.
What is the use of ADO.NET and XML web services?
What is the difference between Response.Expires and Reponse.ExpiresAbsolute?
What is dbcontext and dbset in entity framework?
Is bulk insert faster than insert?
What is difference between datatable and dataset?
What is different between sqlcommand object and command behavior object?
Which property is used to check whether a DataReader is closed or opened?
Does dapper use ado.net?
What are the advantages using ado.net?
What is the difference in record set and dataset?