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 are the advantages and disadvantages of using datalist?
describe the dataset object in ado.net.
What is the difference between Optimistic and Pessimistic locking?
Which object holds only data and does not interact with data source?
Which database is the ado.net sql connection object designed for?
What does ado stand for?
Which method in OLEDBAdapter is used to populate dataset with records?
Explain the various objects in dataset.
What is the namespaces being used to access oracle database?
If we are not returning any records from the database, which method is to be used?
How to find the given query is optimised one or not?
Give an example of a .net application which connects to microsoft access database using ado.net classes.
What is ado full form?
What are the different methods by which we can populate a dataset?
What is linq and entity framework?