|
-
Sep 30th, 2006, 07:32 PM
#14
Frenzied Member
Re: Datareader issue
that you should call the dispose method on it.
i dont agree about this sentence regarding the connection object,
on a database running application closing a connection returns the connection to the pool of ready connections with the same signature (Exact connection string) , so next time when u try to open connection with the same signature ( connection string ) . it will get u the connection from the ready pool and will save time. disposing the connection inside the program will waste time twice. once to explictly dispose the object and Garbage collect it and second when u try to open a new connection later from scratch.
that is my opinion, but you have better experience anyway
rgds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|