How to fetch the last inserted record in a particular table?
Answer Posted / archana
If a table have identity column then u can fetch the last
inserted record through following query:
"select max(ID) from test"
| Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
What is difference between Dataview and Datatable?
What is data access pattern?
What are advantages of microsoft-provided data provider classes in ado.net?
Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?
What is sqldatareader in ado.net?
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
What is difference between sqldatareader and sqldataadapter?
What are the namespaces used in ado.net for data access?
What is sql connection in ado.net?
Which database is the ado.net?
Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.
How to check if a datareader is closed or opened? IsClosed()
What is Data Provider?
Explain how do you connect to sql server database without using sqlclient?
What are the usages of the command object in ado.net?