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.

thx!

asked 22 Aug '13, 14:19

pLee's gravatar image

pLee
214111220
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
5.7k53870
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
1

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" http://dcx.sybase.com/index.html#sa160/en/dbadmin/sa22c8e99f-db62-4851-a551-ea775eeed6e8.html

and "sa_conn_info": http://dcx.sybase.com/index.html#sa160/en/dbreference/sa-conn-info-system-procedure.html

ReqType

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×159
×125
×56

question asked: 22 Aug '13, 14:19

question was seen: 2,546 times

last updated: 23 Aug '13, 08:26