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 fetch the last inserted record in a particular table?

Answer Posted / neha

Through this statement, we can retrieve the same:

ds.Tables[0].Rows[ds.Tables[0].Rows.Count-1]

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between dataset and datatable?

1077


Explain how to call the sql commands asynchronously in ado.net version 2.0?

982


What are the data access namespaces in .NET?

1263


What is ado recordset?

1063


If a table contains 20000 records . In a page at each time 100 records to be displayed what are the steps you will take to improve performance? Will you use dataset or datareader?

1105


What is datasource in ado.net?

1127


describe the dataset object in ado.net.

999


What are the namespaces used in ADO.Net to connect to a database?

1315


Can we create Synonymns in MS Acess,My Sql Server,Sql Server? But iam we can create in oracle!

2178


What is the difference between oledb sql server and oledbdotnet provider?

1060


In how many ways we can retrieve table records count? How to find the count of records in a dataset?

1050


What is the difference between data grid and data repeater?

1142


How do you merge 2 datasets into the third dataset in a simple manner?

1059


What are the rules to implement connection pooling?

1123


What are the 3 major types of connection objects in ado.net?

1054