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 procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
What is the advantage of ado.net?
What are different layers of ADO.Net?
What is the significance of CommandBehavior.CloseConnection ?
How do you merge 2 datasets into the third dataset in a simple manner?
What is the namespaces being used to access oracle database?
What are the main differences between classic ado and ado.net?
What are the different ado.net namespaces?
What is the use of SqlCommand object?
What is a string variable?
What is ado code?
What is oledb connection?
What are the different ado.net namespaces are available in .net?
What are the Features and disadvantages of dataset
What are the benefits of using of ADO.NET in .NET 4.0?