on 2013 Feb 14 2:58 AM
Good day for all! After closing connection to ASA9 server from my program with this code:
_cn = new AsaConnection(); _cn.Open();
...
_cn.Close(); _cn.Dispose(); _cn = null;
In sybase central connection showed in Connected users tab with last requst COMMIT, and disappears only after closing the program. It normally? How can I really close connection without closing program? Garbage collection not helps...
Request clarification before answering.
This is the expected behaviour - connection pooling is enabled on ADO.NET connections by default. If you wish to disable this behaviour (although it's enabled for performance reasons), you can add POOLING=FALSE
to your connection string.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connection pooling is enabled by default IIRC. If you disable pooling, this behavior should clear. To do so, change you connection string to disable pooling by adding POOLING=FALSE as in:
ENG=DEMO12;DBN=DEMO;POOLING=FALSE;UID=UserId;PWD=Pa55W0rd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Might be connection pooling (the connection is waiting to be reused) To double check, try a loop to do your stuff >32767 times, if you run out of connections I would say it is a bug.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
52 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.