You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2024. It is now read-only.
I get the below error, about connecting to a database unrelated to the command.
Error details: Microsoft.SqlServer.Management.SqlScriptPublish.SqlScriptPublishException: An error occurred while scripting the objects. ---> Microsoft.SqlServer.Management.Common.ConnectionFailureException: Failed to connect to server server.database.windows.net. ---> System.Data.SqlClient.SqlException: The server principal "not-server-admin" is not able to access the database "an-azure-sql-db" under the current security context. Cannot open database "an-azure-sql-db" requested by the login. The login failed. Login failed for user 'not-server-admin'.
The text was updated successfully, but these errors were encountered:
I've got a sql-db instance on the same server as my azure data warehouse.
When executing the below query:
mssql-scripter -S server.database.windows.net -d sqldw -U not-server-admin --target-server-version AzureDW -f C:\Users\somewhere --file-per-object --exclude-use-database --display-progress --exclude-headers
I get the below error, about connecting to a database unrelated to the command.
Error details: Microsoft.SqlServer.Management.SqlScriptPublish.SqlScriptPublishException: An error occurred while scripting the objects. ---> Microsoft.SqlServer.Management.Common.ConnectionFailureException: Failed to connect to server server.database.windows.net. ---> System.Data.SqlClient.SqlException: The server principal "not-server-admin" is not able to access the database "an-azure-sql-db" under the current security context. Cannot open database "an-azure-sql-db" requested by the login. The login failed. Login failed for user 'not-server-admin'.
The text was updated successfully, but these errors were encountered: