cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy disconnect ?

Former Member
5,349

SQL Anywhere Version 12 Build 3873

I have a database with ASA proxy tables in it. When my app starts up the connection to the remote server does not immediately start up (This is good).. When I execute the 1st query that uses the proxy table the remote server connects(This is good)... The question I have is that after these queries on the proxy table are finished I need to have the connection the remote server closed via a function call in my app.

I am copy data to the remote server database (insert .. select) , once this copy is done my application packages the db file up for delivery. With the connection still active the file is locked down so I can not do the additional processing.

All connections are using ODBC via a C++ application.

Thanks TPS

Accepted Solutions (0)

Answers (1)

Answers (1)

MarkCulp
Participant

I believe the statement that you are looking for is

alter server server_name connection close

Documentation is here.

Former Member
0 Kudos

Yes, I just found the syntax. I was tripped up a little to begin with because when I ran it in ISQL while my app was at a breakpoint it did not indicate that the connection was closed. But placing it in code everything appears to work.