How to fetch the last inserted record in a particular table?
Answer Posted / skumar
We can use the query like
SELECT TOP 1 ID FROM table ORDER BY ID DESC
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
What is difference between connected and disconnected architecture in ado.net?
What is disconnected architecture in ado.net?
What is data reader in ado.net?
What is the role of data provider in ado.net?
What is ado control?
How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
What are datareaders?
What is ole db and odbc?
What are the key events of sqlconnection class?
What are all the different methods under sqlcommand?
What is sqldatasource?
Define atomicity?
How can we check that some changes have been made to dataset since it was loaded?
How many major types of connection objects in ADO.NET?
What are the parameters that control most of connection pooling behaviours?