I am trying to use the Azure SQL Database Emulator described here: https://learn.microsoft.com/en-us/azure/azure-sql/database/local-dev-experience-sql-database-emulator?view=azuresql
I am trying to emulate our production environment locally. So far, I have created two databases, a "Corp" database and a "Data" database.
Now, I am trying to link the two by creating an external data source on the "Data" database, like so:
/****** Object: ExternalDataSource [Corp] Script Date: 7/11/2024 10:58:08 AM ******/
CREATE EXTERNAL DATA SOURCE [Corp] WITH (TYPE = RDBMS, LOCATION = N'localhost', CREDENTIAL = [SQL_Credential], DATABASE_NAME = N'Corp')
GO
This SQL is generated from SSMS; I only replaced the LOCATION argument.
However, I get an error:
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near 'RDBMS'.
External data sources are not listed under Limitations in the linked article, so I should be good to go. However, it does appear to be in a (preview) state (despite being introduced in 2022).
Has anyone else experienced this? If so, how did you work around it?
