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 the difference between typed and untyped dataset?

1165


Which provider is used to connect ms access, oracle, etc…?

1056


How would you connect to database using .NET?

1081


What is read only and forward only in ado.net?

984


What DataReader class do in ADO.NET ?

1167


How can we check that some changes have been made to dataset since it was loaded?

1016


Which keyword is used to accept variable number of parameters?

1167


Define the executescalar method?

995


Which parameter of ConnectionString is used to specify the name of the database?

1113


What is disconnected scenario in entity framework?

1166


What is difference between datatable and dataset?

1128


What is ado.net object model?

1028


How to creating a SqlCommand Object?

1199


What is ado.net components?

1003


What is sql command in ado net?

1013