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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing and Reopening a Connection

Status
Not open for further replies.

BlackburnKL

Programmer
Oct 21, 2002
196
US
I am experiencing problems trying to use a reponed connection to the database.

We use a VB6 front end, and a SQL Server 2000 database using ADO connections from Windows 2000 PCs (via application role access). We scan boxes of product as they pass down a conveyor to update the inventory. I was asked to close the connection during periods of inactivity. That part works fine.

When the next box comes along (after lunch, etc.), the connection needs to be reopened (which also appears to work). The trouble comes when I attempt to open an ADO recordset using the reopend connection. It returns a general network error.

Any ideas?

Thanks in advance for your help.

BlackburnKL, Programmer

BlackburnKL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top