Issue
Running an SSIS package using environment variables failed when trying to connect to an Azure SQL database. The error returned pointed to a password issue with the SQL user.
Solution
There was a couple of issues at play here.
- The server name component of the connection string needed to have the full Azure database name, i.e. my-sql-server.database.windows.net rather than just my-sql-server
- We also had to add the
Persist Security Info=trueparameter to the connection string. I think this is because the user we connect as is a contained user to the specific database.
Also worth noting that as we use a contained user the database needs to be specified in the connection string
No comments:
Post a Comment