The forum will be unavailable for maintenance at some point from Friday, April 13 at 19:00 EDT until Sunday, April 15 at 23:59 EDT. Downtime will be minimized but the exact timing is unknown.

When connecting to Sybase ASE there are connection parameters 'Host' (the machine name of the client) and 'AppName' (the name of the client application). Then while the application is connected, the entry in the sysprocesses table shows those values.

I would like to do the same thing for SQL Anywhere if it is possible. If it is possible, would the values appear in the same columns of sysprocesses?

My application is written in PowerBuilder.

asked 21 Oct '11, 14:44

Roland%20Smith's gravatar image

Roland Smith
accept rate: 0%

SQLAnywhere doesn't have a sysprocesses but the application info you are looking for can be acquired via a different mechanism. See*d5e18109.

permanent link

answered 21 Oct '11, 14:55

John%20Smirnios's gravatar image

John Smirnios
accept rate: 39%

I'm hoping to be able to show a list of connected users when the database is running as a server (as opposed to local single user).

(21 Oct '11, 15:12) Roland Smith
Replies hidden

See sa_conn_info, sa_conn_list and connection_property in the documentation. For example, you might do "select userid, connection_property( 'appinfo', Number ) from sa_conn_info()"

(21 Oct '11, 15:23) John Smirnios

The HOST parameter may be picked up by the data provider. For the Application Name, you can specify this using the AppInfo connection parameter:

AppInfo Connection Parameter


The value can be viewed as part of:

SELECT CONNECTION_PROPERTY('AppInfo'[,connection_id]);
permanent link

answered 21 Oct '11, 15:18

Tyson%20Lewis's gravatar image

Tyson Lewis
accept rate: 22%

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: 21 Oct '11, 14:44

question was seen: 1,178 times

last updated: 21 Oct '11, 15:23