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 dataset and datatable in ado.net?

1001


Define different execute methods of ADO.NET command object ?

1107


What is sqldatareader?

924


Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.

1117


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

1013


Explain why edit is not possible in repeater?

1048


What are the advantages using ado.net?

1040


Explain the architecture of ado.net?

1070


What is acid in ado.net?

1041


Explain how to find the given query is optimised one or not?

1035


Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.

1021


What is the difference between typed and untyped dataset?

1093


What is sqldatasource?

930


What is microsoft ado?

1011


Is it possible to edit data in Repeater control?

966