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 |
Why edit is not possible in repeater?
What is ado.net tutorial?
How to get oledb connection?
Which is faster ado.net or linq?
About ADO and its objects ?
How do you merge two datasets into the third dataset in a simple manner?
What are the advantages and disadvantages of using datalist?
what are the two key events for the sql connection class? explain the differnce between the two.
can u tell me the why ADO does not support xml..
once data is fetched into dataset connection gets closed. but in datareader connection is always maintained...then why datareader is fast and mainly recommended ?
What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?
Differnces between oracle 9i and sql server?
2 Answers College School Exams Tests, Microsoft,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)