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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between sqlcommand object and command behavior object?

533


What is disconnected data?

578


Explain the advantages and disadvantages of using datalist?

614


How to work with disconnected data - the dataset and sqldataadapter?

502


How is it possible to get 2 tables of data at a time by using data reader?

496






What is microsoft ado.net?

577


Explain why edit is not possible in repeater?

536


How can I retrieve two tables of data at a time by using data reader? Data reader read and forward only, how is it possible to get 2 tables of data at a time?

518


What are all the commands used with Data Adapter?

518


Define connection string?

580


Why is it important to close an ado.net application?

528


What is a control toolbox?

501


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

587


What is data view and variable view?

482


How to pass multiple tables in datasets simultaneously?

569