i have seen a tool that can list all connections to a sqlanywhere 12 server with name of the client pc and name of the app that has the connection opened at the client. i haven't found a system procedure to list these information. can anybody tell me how to get this information with a sql statement?
kind regards Andreas
asked 20 May '15, 02:41
The 'AppInfo' value is a string of concatenated key/value pairs including the program name and the client machine name, you may use another system procedure named sa_split_list() to extract that:
will return each pair in its own row, and you may take the value of the rows with values starting with "HOST=" or "EXE=".
answered 20 May '15, 04:12
sa_conn_info is a system procedure which lists connections properties. You may use it in two different ways: call it without any parameters
exec sa_conn_infoor use it in a SELECT statement, e.g.
SELECT NodeAddr FROM sa_conn_info ()You can get more detailed information about connections using sa_conn_properties. Among the numerous properties "AppInfo" might be what you're looking for.