//I am using sql server 2017
CREATE EXTERNAL DATA SOURCE MyElasticDBQueryDataSrc WITH
(TYPE = RDBMS,
LOCATION = '<servername>.database.windows.net',
DATABASE_NAME = 'db1',
CREDENTIAL = ElasticDBQueryCred
) ;
//I am using sql server 2017
CREATE EXTERNAL DATA SOURCE MyElasticDBQueryDataSrc WITH
(TYPE = RDBMS,
LOCATION = '<servername>.database.windows.net',
DATABASE_NAME = 'db1',
CREDENTIAL = ElasticDBQueryCred
) ;
I am using sql server 2017
RDBMS External Data Sources are currently only supported on Azure SQL Database.
-- Elastic Database query only: a remote database on Azure SQL Database as data source
-- (only on Azure SQL Database)
CREATE EXTERNAL DATA SOURCE data_source_name
WITH (
TYPE = RDBMS,
LOCATION = '<server_name>.database.windows.net',
DATABASE_NAME = '<Remote_Database_Name>',
CREDENTIAL = <SQL_Credential>
)
[;]
See CREATE EXTERNAL DATA SOURCE
On SQL Server 2017 you can use Linked Servers