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

How to identify the controls which can be used for binding data?

737


Explain the various objects in dataset.

698


How can I retrieve two tables of data at a time by using data reader?

701


How many major types of connection objects in ADO.NET?

782


What is bubbled event?

709


What does ole stand for in excel?

826


Explain sqlconnection object?

742


What is openquery?

706


Which is better entity framework or ado.net?

692


What is the use of sqldatareader class?

655


What is a datagridview?

707


Is it possible to edit data in Repeater control?

678


What is ado.net and its architecture?

696


What is acid in ado.net?

706


What is the difference between sqlcommand and sqldataadapter?

696