It sounds impossible, but I just had a sequence of dbping executions that ran the connection number up beyond 400,000 on a SQL Anywhere 16 database. It only takes a few milliseconds for a connect/disconnect so exhausting the INTEGER range is not out of the question.
If the connection number wraps to 1, do new connection numbers step over small assigned values that are still in use?
Do new connection numbers "step over" high-valued connection numbers (events, services, backups, exchanges, etc)?
asked 27 Feb '15, 15:08
The range of user connection numbers is from 1 to 999,999,999. If you did have more than a billion connections and disconnections, the connection numbers would start from 1 again, but they would not reuse any connection numbers already in use.
So the ranges for user and temporary connection numbers are never violated, and even if you use more than a billion connection numbers, there can never be two connections with the same number.
answered 27 Feb '15, 15:13