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 ado data control?

934


What is DataRowCollection?

1030


What is the meaning of executenonquery?

961


What are the disadvantages of using datalist?

971


What are typed and untyped dataset?

1042


What is sql connection in ado.net?

895


What is ole in vb?

851


Explain the dataadapter class in ado.net?

1125


What does executenonquery () method return?

878


What is aggregate root?

998


What are the parameters that control most of connection pooling behaviours?

1009


List all the steps in order, to access a database through ado.net?

1026


What is aggregating data ?

909


Define table relations?

921


What are the advantages of oledb compared with other classes?

2738