Hi Gawel:
Yes, you'll still need to invoke Close, or Dispose on the
SqlDataReader. It's absolutely critical to do so if you are using
ExecuteReader with CommandBehavior.CloseConnection. If you want to
avoid invoking Close, perhaps using a DataSet would suit your
application better?
--
Scott
http://www.OdeToCode.com
On Fri, 21 May 2004 22:31:12 +0200, "Gawel" <ga*****@SPAMIKgazeta.pl>
wrote:
Thanks for answerback up to when you execute your reader from the command object
Dim reader As SqlDataReader =
cmd.ExecuteReader(CommandBehavior.CloseConnection )This essentially closes the connection when the reader is closed.
But I still need to call Colse() on reader ?
And this is what I want to avoid.
Gawel