Select to view content in your preferred language

ArcGIS Pro 3.3.1 - Issue with Azure SQL DB Connection

541
5
Jump to solution
02-19-2025 06:39 PM
Hua
by
Emerging Contributor

Hi Esri community,

We are about to move on-prem SQL DB to Azure SQL Server. I had an empty SQL database created on the Azure SQL server instance, which can be connected from my local Azure Data Studio/VS Code. With the exact same settings, however, I can't connect from a database connection in ArcGIS Pro, v3.3.1.

Here are the connection settings in VSCode, working all good.

Code_0oALVBJvJQ.png

Here are the DB connection settings in ArcGIS Pro, which failed to connect with an error "Invalid column name".

Hua_0-1740018568052.png

Extra notes:

1. Was suspecting the dash character in the instance and database name, but didn't find any evidence from official source of documentation.

2. Tried other settings as well e.g. Port=1433, or change Yes to yes/true/True etc. 

3. What made me think is that VSCode can connect successfully, but ArcGIS Pro can't do it with the exact same parameters from the same environment. 

 

Was there any syntax error in my config? Much appreciated if someone can shed some light on it.

 

Thanks,

Hua

 

 

0 Kudos
1 Solution

Accepted Solutions
Hua
by
Emerging Contributor

@RichardDaniels  - Thanks for your reply. After more research, it was the database name exceeding the max number of characters (31) that ArcGIS can support. https://pro.arcgis.com/en/pro-app/latest/help/data/databases/connect-sqlserver.htm

Hua_0-1740084273086.png

 

View solution in original post

0 Kudos
5 Replies
RichardDaniels
Honored Contributor

Have you tried with Encrypt=no? Previous to ArcGIS Pro 3.2 and ODBC 17.09 the default for this was no or false. With the upgrade to ArcGIS Pro 3.3 and ODBC 17.10 and higher the default is now yes or true. Also if you have a connecting string stored in a config file or settings check other attributes since there names may have changed.  

For example, old connection string to SQL:

Data Source=<server name>;Initial Catalog=<database name> Security Info=True;User ID=<user_id>;Password=<password>;TrustServerCertificate=true</Value>
</Setting>

 

New Format:

Server=<server_name>;Database=<db_name>;PersistSecurityInfo=true;UID=<user_id>;Password=<password>;TrustServerCertificate=true;Encrypt=false

 

0 Kudos
RichardDaniels
Honored Contributor

Also, I've never seen Encrypt=Mandatory as shown in your top photo. This would imply that you have Trusted Certificates installed on all servers. Can you change that to yes or no?

0 Kudos
Hua
by
Emerging Contributor

@RichardDaniels  - Thanks for your reply. After more research, it was the database name exceeding the max number of characters (31) that ArcGIS can support. https://pro.arcgis.com/en/pro-app/latest/help/data/databases/connect-sqlserver.htm

Hua_0-1740084273086.png

 

0 Kudos
RichardDaniels
Honored Contributor

That is a new limitation for me :-). good find.

0 Kudos
AyanPalit
Esri Regular Contributor

Thanks for posting the solution. There is a pending enhancement request; feel free to review and kudo to upvote: SQL databases with names longer than 31 characters

Ayan Palit | Principal Consultant Esri
0 Kudos