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

Explain the dataadapter class in ado.net?

1211


How do I delete a row from a DataTable?

1168


Data reader read and forward only, how is it possible to get 2 tables of data at a time?

920


What is the difference between statement and preparedstatement interface?

1000


What are the benefits of using ado.net?

1006


What are the Features and disadvantages of dataset

1126


What is meant by ‘transaction’ in a database and what are the ‘properties of transaction’?

999


Explain ODP.net

1007


Explain the namespaces in which .net has the data functionality class.

1092


What is the difference between OLEDB Provider and SqlClient?

988


What does executenonquery () method return?

939


Give an example of a .net application which connects to microsoft access database using ado.net classes.

1158


Define table relations?

987


What are the steps to connect to a database?

1024


What is the difference between sqlcommand and sqldataadapter?

999