Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

I have an external stored procedure and call a stored procedure located at remote database server. I would like to know how to drop that connection after the call done.


asked 22 Aug '13, 14:19

pLee's gravatar image

accept rate: 0%

edited 22 Aug '13, 15:09

What version of SQL Anywhere are you using? If you are using SQL Anywhere 16, then consult the documentation for the DROP REMOTE CONNECTION statement. If you are using SQL Anywhere 12 or below, then look at the CONNECTION CLOSE clause on the ALTER SERVER statement.

permanent link

answered 22 Aug '13, 15:18

Karim%20Khamis's gravatar image

Karim Khamis
accept rate: 40%

the statement was applied, but the connection is still there and the request type becomes CONNECT_POOL_CACHE. Why?

(22 Aug '13, 18:57) pLee
Replies hidden

The connection has been cached at the database server for efficiency reasons (in case you make another connection request in a short amount of time - 60 seconds, by default).

See "Connection Pooling"

and "sa_conn_info":


Returns the type of the last request. If a connection has been cached by connection pooling, its ReqType value is CONNECT_POOL_CACHE.

(23 Aug '13, 08:25) Jeff Albion
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 22 Aug '13, 14:19

question was seen: 2,569 times

last updated: 23 Aug '13, 08:26