Hi Greenwood, Justin -Administrator •,
As mentioned above, you have solved the error by adding user to db_owner role.
This is the solution which worked for the above question.
Thank you.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All
So I have followed all the steps in Get started with cross-database queries But when I try and run a select on the External table I am getting the following error:
Msg 46832, Level 16, State 3, Line 2
An error occurred while establishing connection to remote data source: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'WFBE'.[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'WFBE'.
WFBE has a login and is set as server admin in Azure
under the tables though the user is USER [dbo] FOR LOGIN [WFBE] WITH DEFAULT_SCHEMA=[dbo]
I have tried setting up
CREATE DATABASE SCOPED CREDENTIAL ElasticDBQueryCred
WITH IDENTITY = 'USER',
SECRET = 'password';
For but dbo and WFBE but keep getting the above.
The table is on the same server but different DB, all databases are in the same SQL elastic pool on the AZURE SQL server
In Azure networking is set to
public network access - Selectednetworks
Allow Azure services and resources to access this server is ticked
Any question or any screen shoots needed then please let me know.
Hi Greenwood, Justin -Administrator •,
As mentioned above, you have solved the error by adding user to db_owner role.
This is the solution which worked for the above question.
Thank you.
Hi Greenwood, Justin -Administrator •,
Please note that:
You must possess ALTER ANY EXTERNAL DATA SOURCE permission. This permission is included with the ALTER DATABASE permission. ALTER ANY EXTERNAL DATA SOURCE permissions are needed to refer to the underlying data source.
Also note the below Preview limitations:
Let us know if this helped. Thank you.