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


Please Help Members By Posting Answers For Below Questions

Explain how can we load multiple tables in to dataset?

500


Does executenonquery return a value?

543


Does dapper use ado.net?

598


What are the objects of ado.net?

536


Which is faster ado.net or linq?

515






What is an example of ordinal data?

489


What is ado and rdo?

502


Which database is the ado.net sql connection object designed for?

595


What are the difference between readonly vs. Const?

506


What is difference between Dataview and Datatable?

530


What are the namespaces used in ADO.Net to connect to a database?

599


Can we connect two dataadapters to same data source using single connection at same time?

530


Is it possible to edit data in Repeater control?

531


How can you identify whether or not any changes are made to the DataSet object since it was last loaded?

556


Can we load multiple tables in a dataset?

544