How to fetch the last inserted record in a particular table?
Answer Posted / muskaan
if(ds.Tables["tablename"].Rows.Count>0)
{
ds.Tables{"tablename"].Rows.Count-1;
}
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What is difference between sqldatareader and sqldataadapter?
Does ado.net use odbc?
Which property is used to check whether a DataReader is closed or opened?
What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?
What is the use of adodc?
What Is Difference Between Ado And Ado.net?
What is ado.net object model?
Explain ado.net features? Benefits? Drawbacks?
What is difference between ado.net and asp net?
How to work with disconnected data - the dataset and sqldataadapter?
What does sqldatareader return?
Explain the various objects in dataset.
What is data relation in ado.net?
What is the difference between executequery and executenonquery?
Which is better ole db or odbc?