Hi Tony,
DataAdapter.Fill works in two ways.
1) If there is an open connection, this connection is used, and the connection is left untouched
2) If no connection is found. Connection.Open is called, and Connection.Close is called after Fill
> Hello!
>
[quoted text clipped - 33 lines]
>
> //Tony

Signature
Happy coding!
Morten Wennevik [C# MVP]
tony - 18 Aug 2006 12:57 GMT
Hello!!
Do you recomment that a close should be used in my case or can I just leave
it as my method below is now.
//Tony
Hi Tony,
DataAdapter.Fill works in two ways.
1) If there is an open connection, this connection is used, and the
connection is left untouched
2) If no connection is found. Connection.Open is called, and
Connection.Close is called after Fill
On Fri, 18 Aug 2006 13:32:22 +0200, tony <johansson.andersson@telia.com>
wrote:
> Hello!
>
[quoted text clipped - 33 lines]
>
> //Tony
--
Happy coding!
Morten Wennevik [C# MVP]
Morten Wennevik - 18 Aug 2006 13:39 GMT
You can leave it as it is
> Hello!!
>
[quoted text clipped - 59 lines]
> Happy coding!
> Morten Wennevik [C# MVP]

Signature
Happy coding!
Morten Wennevik [C# MVP]