Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is ole in excel?

897


What is the use of adodc?

939


What is the difference between Optimistic and Pessimistic locking?

924


What are the classes in System.Data.Common Namespace?

1086


What is different between sqlcommand object and command behavior object?

984


Some important instruction regarding ADO.NET connection string ?

923


What is isolation?

967


How do you update a dataset in ado.net?

967


How can we add/remove row's in "datatable" object of "dataset"?

969


What is connected architecture in ado.net?

973


What is csdl entity framework?

970


If we are not returning any records from the database, which method is to be used?

1273


What is ado.net and its architecture?

1073


What is ole access?

884


What Is Difference Between Ado And Ado.net?

975