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
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 |
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?
what is type dataset?
What are the ado.net objects?
What is Dataset Object?
What are the different execute methods of Ado.Net?
Explain the difference between an ado.net dataset and an ado recordset?
can we create synonymn in ms access,sql server,my sql if so explain me with example
How to connect and retrieve data from database using dataset
what is bubbled event can u pls explain
Describe connection object in ado.net
What are the three Ado objects?
6 Answers Microsoft, StarSoft,
If we want to connect to many databases in dataaccess layer such as MSAccess,Sql server,oracle means not to a particular database depends on condition we have to connect to appropriate database in this scenario if we without changing code Ho wdo you handle this situation?