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
What is the default timeout specified for "sqlcommand.commandtimeout" property?
how you will deal result set? How do you sort a dataset?If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
What are the different methods available under the sqlcommand class to access the data?
How we can provide data to ado.net?
What are the advantages of oledb compared with other classes?
How do you connect to sql server database without using sqlclient?
Does executenonquery return a value?
Which namespaces are used for data access?
What is read only and forward only in ado.net?
How do you update database through dataset?
How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
Explain the basic use of "dataview" and explain its methods.
What is data view and variable view?
What is the default provider in ado.net?
What is the difference between Command and CommandBuilder object?