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

What are the advantages of ado.net?

505


What are the different row versions available in table?

524


What is microsoft ole db provider for sql server?

475


What are the differences between OLEDB and SQLClient Providers?

558


Which control of the BindingNavigator returns the current position within the data source?

729






What is the difference between a datareader and a dataset?

508


What is data relation?

498


can we create synonymn in ms access,sql server,my sql if so explain me with example

1572


Define ado.net?

566


What is aggregate root?

491


What is ado.net components?

501


Why do we serialize data?

490


What are the classes in System.Data.Common Namespace?

697


Which object holds only data and does not interact with data source?

493


describe the dataset object in ado.net.

520