How to add Primary key in DataSet

Answer Posted / gopi

ds.Tables[0].Constraints.Add("pk_sid",
ds.Tables[0].Columns[0], true);

Is This Answer Correct ?    29 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define data access layer?

705


How can I retrieve two tables of data at a time by using data reader?

707


What is csdl entity framework?

743


What is ado.net in vb net?

672


What is an example of ordinal data?

716


Difference between sqlcommand and sqlcommandbuilder?

786


How to Read, Add, Update and Delete record in Entity Framework ?

772


What is the maximum pool size in ado.net connection string?

690


What are the usages of the command object in ado.net?

744


What is ole word?

723


What are the major difference between classic ADO and ADO.NET?

724


What is DataReader Object?

773


What is two way data binding android?

703


What is ado rdo dao in visual basic?

874


What is Data Provider?

784