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

Why ca not we use multiple inheritance and garbage collector paralelly in .net?

551


What is the default Timeout for SqlCommand.CommandTimeout property?

501


What are the different ado.net namespaces are available in .net?

495


How to bind the controls(best practice) comboboxes to the data in the dataset?

540


Explain ado.net features?

534






Some important instruction regarding ADO.NET connection string ?

542


Give an example of a .net application which connects to microsoft access database using ado.net classes.

587


Is ado.net an orm?

513


What is ado.net in vb net?

499


What is connection string?

525


What is different between sqlcommand object and command behavior object?

539


Which object needs to be closed?

1740


What is difference between executequery and executeupdate?

496


What are the 3 major types of connection objects in ado.net?

539


What is the use of SqlCommandBuilder?

615