cancel
Showing results for 
Search instead for 
Did you mean: 

How can I determine the maximum allowed length for a server hostname?

Former Member
756

I have recently inherited legacy code that utilizes SQL Anywhere. I noticed that the server name gets truncated to 30 characters whenever it is constructed, which is causing issues for certain users. To determine whether this limitation is specific to SQL Anywhere, I've been searching for a definitive answer, but haven't found one yet, despite a day of extensive searching.

Accepted Solutions (0)

Answers (1)

Answers (1)

johnsmirnios
Advisor
Advisor

Hello, your question refers to "server hostname" but I think you are referring to SQLAnywhere server names rather than hostnames. Right?

I can find references in the code to an "old" limit of 40 characters for a SQLA server name but the current limit is 250. The 40-character limit would have been very, very long ago.