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 ado code?
What is execute reader in ado.net?
Which parameter of ConnectionString is used to specify the name of the database?
What is ole2 format?
Explain sqlconnection object?
What is datatable in ado.net?
Explain which name space is used to get assembly details?
How to aggregating data across related tables?
How to generate a single aggregate?
What is the role of clr?
What Is Difference Between Ado And Ado.net?
differences between ADO and ADO.NET
What are the key events of sqlconnection class?
Define Execute Scalar?
What is connected architecture in ado.net?