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
What are the usages of the command object in ado.net?
What is connected architecture in ado.net?
What are the classes in System.Data.Common Namespace?
Which database is the ado.net sql connection object designed for?
How to perform sorting on a table in ADO.NET?
What are the steps to connect to a database?
How to bind the controls(best practice) comboboxes to the data in the dataset?
What is the meaning of executenonquery?
What is dataset object? Explain the various objects in dataset.
What is defaultview in datatable?
What does executenonquery () method return?
What is difference between dataset and datatable?
What are the advantages and disadvantages of using datalist?
What is dbcontext and dbset in entity framework?
Why do we serialize data?