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.

How can I determine how many licenses are in use on a server in total?

And how does this relate to connections? A user can have several connections in my application to the server.

asked 21 Jul '11, 08:50

ivankb's gravatar image

accept rate: 50%

Ivan, The first step is to determine how your server is licensed, and then how many units it is licensed for. Use the LicenseType property to determine if your server is licensed on a per-seat or CPU basis:

select property( 'LicenseType');

Then you can request the LicenseCount property to determine how many seats or CPUs are licensed:

select property( 'LicenseCount');

You can also use the DBLIC command line utility to determine these things. On my Windows XP machine, the following command returns information about the license on my installed copy of SQL Anywhere:

dblic "c:\Program Files\SQL Anywhere 12\Bin32\dbsrv12.lic"

If you are licensed on a per-seat basis, then the license restricts the number of unique users. Here is the exact definition from the US license (found here:

“Seat”, or “ST” - A specific, identifiable, unique input/output device capable of directly or indirectly accessing and using a Program such as (without limitation) a terminal, personal computer, single user workstation, personal digital assistant (“PDA”), wireless device or real time device.

For SQL Anywhere, a per-seat license allows you to use exactly that many unique seats. Here are the SQL Anywhere specific rules (from )

Per-seat editions authorize you to install and Use SQL Anywhere Client Software, on up to the number of Seats licensed, to access the licensed SQL Anywhere Server.

It is up to you to understand your specific application architecture, and identify exactly who are your users. If you are using a standard client/server architecture, with different machines running an application that connects to the database server, then the UniqueClientAddresses property may help you determine how many machines have connections to the server, and hence, how many licenses are in use:

select property( 'UniqueClientAddresses');

Note that this approach doesn't work if you are using a web-like architecture with an application server, because each unique user's machine isn't making a direct connection to the database server. If this is the case, then your application will have to keep track of the number of users.

There is no restriction in the SQL Anywhere license on the number of connections that each user may have to the database server. The SQL Anywhere Personal Server is limited to 10 connections from the same machine, but the SQL Anywhere Network Server does not have a limit.

To obtain an accurate count of the number of connections in use, you can use the following SQL statement:

SELECT COUNT( * ) FROM sa_conn_info( ) WHERE number < 100000000;

You can read more about all the various utilities, statements and properties on DCX:

permanent link

answered 21 Jul '11, 11:23

Chris%20Kleisath's gravatar image

Chris Kleisath
accept rate: 37%

Thanks. I did mention per-seat in the subject, should have also in the note. I am in an RDP environment now, so most users are coming from the same IP, UniqueClientAddresses is low and I guess this is why.

What happens if UniqueClientAddresses exceeds LicenseCount?

(21 Jul '11, 11:41) ivankb
Replies hidden

1) Your remote desktop environment will indeed mask the number of unique users, so the SQL Anywhere server itself will not help you determine the number of licensed users currently accessing the server.

2) The SQL Anywhere server will not allow the number of UniqueClientAddresses to exceed the LicenseCount in a per-seat licensed server. It will return an error.

(21 Jul '11, 12:05) Chris Kleisath
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 Jul '11, 08:50

question was seen: 7,554 times

last updated: 21 Jul '11, 12:05