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 code?

998


What is execute reader in ado.net?

1017


Which parameter of ConnectionString is used to specify the name of the database?

1115


What is ole2 format?

966


Explain sqlconnection object?

1067


What is datatable in ado.net?

1012


Explain which name space is used to get assembly details?

1024


How to aggregating data across related tables?

1100


How to generate a single aggregate?

1025


What is the role of clr?

1001


What Is Difference Between Ado And Ado.net?

1082


differences between ADO and ADO.NET

1130


What are the key events of sqlconnection class?

1249


Define Execute Scalar?

1066


What is connected architecture in ado.net?

1184