Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Access Layer error when checking ConnectionState

Status
Not open for further replies.

tango1948

Programmer
Dec 23, 2006
111
IL
Hi
I have a data access layer where the connection is either sql server or oracle depending on the provider specified in the web.config, when I check the ConnectionState of the connection not being used I get:
Object reference not set to an instance of an object.

How can I check on an unopened connection without getting this error?

Thanks for any help

David
 
This is question to your FrontEnd forum, not for SQL Server one.

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top