LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ODBC connection remains open after disconnect

Solved!
Go to solution

Hello,

 

in my application I use 2 ODBC connects to 2 different ODBC drivers.

My problem:

When I close one connection (with DBDisconnect), the connection on the database remains open until I close the second one.

Is this a known behavior?

Is there a way to force the closing or to make it independant of the other connection?

 

Regards

 

Fred

0 Kudos
Message 1 of 2
(2,677 Views)
Solution
Accepted by topic author FredOnNI

As ODBC connections are not inherently included in the CVI environment, I looked up the DBDisconnect function and it says that the DBDisconnect function disconnects the last connected ODBC database. So it is expected behavior.

Ian M.
National Instruments
0 Kudos
Message 2 of 2
(2,648 Views)