But how should I handle the instantiation of the SQLConnection object? In a
private variable seems right, but should I declare it using the New operator
there... or do that within my WebMethods?
Webservices by design should be stateless for maximum efficeincy. Open it
in your webmethod, use it and close it all within the method. Let the
connection pooling look after itself unless you are receiving problems..
--
Regards
John Timney
Microsoft Regional Director
Microsoft MVP
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.