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 a datareader object?
What is execute reader in ado.net?
What does ado stand for?
What are the pre-requisites for connection pooling?
What is Serialization in .NET? what are the types of Serialization?
What are the ado.net connection pooling parameters?
What are the advantage of ado.net?
What is the use of sqldatareader class?
What is microsoft ado?
What is difference between entity framework and ado.net?
Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?
What is ado.net explain with diagram?
How do you implement locking concept for dataset?
What do you know about ado.net's methods?
What is the full form of ado.net?