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?

Answers were Sorted based on User's Feedback



What we do with the object of ado.net dataset after using it?Can we dispose it or can we set it no..

Answer / chetan nandwana

This is not must as .Net have its own garbage collector.
but if you feel you have no need of this dataset anymore or
you wanna create it again next time them Better use Dispose
method of this as it Implements IDisposable interface

Is This Answer Correct ?    1 Yes 1 No

What we do with the object of ado.net dataset after using it?Can we dispose it or can we set it no..

Answer / 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

What we do with the object of ado.net dataset after using it?Can we dispose it or can we set it no..

Answer / satyambabu

we use dispose

Is This Answer Correct ?    0 Yes 1 No

What we do with the object of ado.net dataset after using it?Can we dispose it or can we set it no..

Answer / guest

we use dispose

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More ADO.NET Interview Questions

What is datatable?

3 Answers  


What is the difference between connected environment and a disconnected environment?

2 Answers  


Which ado.net object is very fast in getting data from the database?

0 Answers  


How to maintain the relation between two tables in ADO.NET?

0 Answers   Petranics Solutions,


Which is better entity framework or ado.net?

0 Answers  






What are the objects of ado.net?

0 Answers  


What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?

0 Answers  


What are the uses of Stored Procedure?

0 Answers  


What is an ado connection?

0 Answers  


About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data ?

1 Answers   MMTS,


What is isolation?

0 Answers  


What is bubbled event can you please explain?

0 Answers  


Categories