Please be aware that the SAP SQL Anywhere Forum will be shut down on August 29th, 2024 when all it's content will be migrated to the SAP Community.


I have specified ConnectionName (CON) parameter in App.config file in a .NET application using Connection Pooling with provider iAnywhere.Data.SQLAnywhere, Sybase version It does show up in the initial connections but it does not show up in connections from connection pool in the same .NET application. This makes it difficult for us to identify the application in production.

This is how I specify in my App.config:

This is how it appears in Sybase Central:

Am I missing something?


asked 19 Jul '17, 10:09

Chinmay1's gravatar image

accept rate: 0%

Do the connections remain nameless after the application actually uses them to run database requests?

(19 Jul '17, 15:17) Breck Carter
Replies hidden

Can you use the AppInfo connection parameter to differentiante between connections from your application and from other apps? It should contain (among other information) the name of the client process.

(19 Jul '17, 16:50) Volker Barth
Replies hidden

Hi Breck,

Yes, the connections remain nameless.


(20 Jul '17, 13:28) Chinmay1

Hi Volker,

Yes, AppInfo has all the information, but the multithreaded applications opens numerous pooled connections and it is not possible for our Support to open individual connection Properties to identify the applications. They need something quick and simple.



(20 Jul '17, 13:34) Chinmay1

The connection name is cleared when the connection is pooled (i.e., closed by the app). When the connection is open, the connection name identifies which pool the connection belongs to (in .NET there can be many). So CON=pool1 and CON=pool2 create two different connection pools.

You should consider upgrading to which, I believe, is the latest published version of 16.0.

permanent link

answered 20 Jul '17, 09:53

JBSchueler's gravatar image

accept rate: 20%

converted 24 Jul '17, 15:11

Mark%20Culp's gravatar image

Mark Culp


Yes I am doing that, "CON=AppName", but it doesn't seem to be working. I do understand though that the connection name is cleared when the connection is pooled (i.e., closed by the app). These pooled connections are opened by EF layer and are very short lived. It seems there is no way of showing ConnectionName for pooled connections.



(21 Jul '17, 16:54) Chinmay1
Replies hidden

Re: It seems there is no way of showing ConnectionName for pooled connections.

Yes, that is exactly what I said. When a connection is "pooled", it means the connection is logically "closed" by the .NET application and when that happens the connection name is cleared. The sa_conn_info system procedure shows the connection name in the Name column of the result set. When the ReqType column is CONNECT_POOL_CACHE meaning the connection is pooled, then the Name column is blank.

I am not sure why you are hung up on the ConnectionName parameter. Volker suggested using AppInfo. Try AppInfo=xyz in your connection string and then run this query in Interactive SQL.

SELECT SUBSTR(CONNECTION_PROPERTY( 'AppInfo', Number ),i), *, PATINDEX( '%APPINFO=%', CONNECTION_PROPERTY( 'AppInfo', Number ) ) AS i FROM sa_conn_info() WHERE i <> 0;

The first column of the result set will show APPINFO=xyz even when the connection is pooled.

(24 Jul '17, 09:56) JBSchueler
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: 19 Jul '17, 10:09

question was seen: 1,644 times

last updated: 24 Jul '17, 09:56