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
Explain the dataadapter class in ado.net?
How do I delete a row from a DataTable?
Data reader read and forward only, how is it possible to get 2 tables of data at a time?
What is the difference between statement and preparedstatement interface?
What are the benefits of using ado.net?
What are the Features and disadvantages of dataset
What is meant by ‘transaction’ in a database and what are the ‘properties of transaction’?
Explain ODP.net
Explain the namespaces in which .net has the data functionality class.
What is the difference between OLEDB Provider and SqlClient?
What does executenonquery () method return?
Give an example of a .net application which connects to microsoft access database using ado.net classes.
Define table relations?
What are the steps to connect to a database?
What is the difference between sqlcommand and sqldataadapter?