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
What is data view and variable view?
How do I delete a row from a DataTable?
What does executenonquery () method return?
What is the difference between OLEDB Provider and SqlClient?
What is the difference between data grid and data repeater?
What you mean by filtering of data?
What is difference in record set and dataset?
How to copy the contents from one table to another table and how to delete the source table in ado.net?
What do you mean by performing asynchronous operation using command object?
What is concurrency? How will you avoid concurrency when dealing with dataset? (One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid the problem?)
Define connection string?
What do you know about ado.net's objects?
What are the key features of ado.net?
What are the namespaces used in ado.net for data access?
Name which operations can you not perform on an ado.net dataset?