What we do with the object of ado.net dataset after using
it?Can we dispose it or can we set it nothing?Is it must or
not?
Answer Posted / om namo bagavathe vasudevaya n
when ever we create an object for a class or any sever
contol etc with in the application and if we forgot to
dispose that object.Then garbage collector runs a Demon
Process(Demon process:A theard that automatically runs when
ever process is called) that is used to collect all the
objects that are not used for so long time.
but when ever we create any DataBase objects or file objects
they are not belong to the application so the IIS sever
doesnot perfom garbage collection for those DataBase or file
objects.So we have to explicity close those database objects
so for that we have to use Dispose mothod for closeing
Database objects and file objects etc..
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Define table relations?
What is ado circle?
What is the role of clr?
Compare Data Reader & Dataset in ado.net?
What is oledb connection?
Which is faster entity framework or ado.net?
How to store data in memory?
What is the difference between data grid and data repeater?
What is a column variable?
What is the difference between a datareader and a dataset?
Is it possible to load multiple tables in a Dataset?
What is the difference between ADO and ADO.Net?
What is a dynaset in access?
Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?
Explain the difference in record set and dataset?