Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Define Execute Scalar?

991


What is sql command in ado net?

941


Why is ADO.NET serialization slower than ADO ?

1031


What is the difference between dataset and datatable?

987


Which property is used to check whether a DataReader is closed or opened?

1031


What are the core objects of ADO.NET?

1025


Which object is used to add relationship between two Datatables?

1028


Which is faster entity framework or ado.net?

917


How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?

1005


What is difference between datareader and dataadapter?

1030


Describe the command object and its method.

986


What is DataReader Object?

1017


Explain the basic use of "dataview" and explain its methods.

977


How to find the given query is optimised one or not?

956


What is difference between datatable and dataset?

1042