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 / muskaan

if(ds.Tables["tablename"].Rows.Count>0)
{
ds.Tables{"tablename"].Rows.Count-1;
}

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between SqlCommand and SqlCommandBuilder?

1071


Explain the architecture of ado.net?

1061


What is the use of adodc?

988


What is full form of ado?

1059


Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?

865


Does executenonquery return a value?

941


How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?

1023


What is ado.net objects?

960


How to maintain the relation between two tables in ADO.NET?

1006


What is ado and dao?

956


Which object needs to be closed?

2255


What is dataset object? Explain the various objects in dataset.

1044


What are the connected and disconnected modes in ado.net?

909


What are the advantages of ado.net?

906


What provider ado.net use by default? Explain the role of data provider in ado.net?

967