How to add Primary key in DataSet

Answer Posted / shahil singh

dim col() as new dt.datacolumn
col(0)=dt.column(1)
dt.primarykey=col

Is This Answer Correct ?    30 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?

626


What is ado.net code?

515


How to generate a single aggregate?

535


What does executequery return?

512


What do you know about ado.net's methods?

579






What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?

764


Explain what is datagrid with an example?

579


What are the rules to implement connection pooling?

502


What is difference between connected and disconnected architecture in ado.net?

575


What is the difference in an abstract class and an interface?

507


Describe datareader object of ado.net with example.

505


How to aggregating data across related tables?

545


What is ado.net full form?

548


What are the objects of ado.net?

525


What is the role of clr?

525