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

How to flush Database connection

Status
Not open for further replies.

darkradar

Programmer
Jul 20, 2002
78
US
Hi

I am having problem in connecting to SQL Server .
My software is a POS software where client POS will
connect to Server POS through VPN and dump the data into server and connection will be disconnected. I have nearly
40 POSclients. At the end of the day they will connect
to POSServer and dump the data and will be disconnected.
I am using SQL Server7.0 with 5 user connection.
But sometimes at the client they are getting an error
"Cannot connect to SQL Server. More than 5 users are
connected". I checked in the Server. It is showing some
of the POS Clients are still connected eventhough they
disconnected long back. It seems its not flushing the memory.Any help will be highly appreciated
I am using VB6.0 and SQL Server7.0

Thanks in advance
 
Ensure you explicitly close your connection object and also set the variable to be nothing.
i.e.

MyDBConn.Close
Set MyDBConn = nothing

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top