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 the difference between SqlCommand and SqlCommandBuilder?
Explain the architecture of ado.net?
What is the use of adodc?
What is full form of ado?
Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?
Does executenonquery return a value?
How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
What is ado.net objects?
How to maintain the relation between two tables in ADO.NET?
What is ado and dao?
Which object needs to be closed?
What is dataset object? Explain the various objects in dataset.
What are the connected and disconnected modes in ado.net?
What are the advantages of ado.net?
What provider ado.net use by default? Explain the role of data provider in ado.net?