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 data control?
What is DataRowCollection?
What is the meaning of executenonquery?
What are the disadvantages of using datalist?
What are typed and untyped dataset?
What is sql connection in ado.net?
What is ole in vb?
Explain the dataadapter class in ado.net?
What does executenonquery () method return?
What is aggregate root?
What are the parameters that control most of connection pooling behaviours?
List all the steps in order, to access a database through ado.net?
What is aggregating data ?
Define table relations?
What are the advantages of oledb compared with other classes?