Sql-server – Linked Server alternative in Sql Azure database

azure-sql-databaselinked-servermigrationsql server

We are migrating database from Rackspace to Azure. Our databases were deployed on Virtual Machines in rackspace. In our queries we are using Linked server to other databases. Basically cross database query.
problem is that after migrating databases, we are unable to use linked server queries as Sql Azure db does not supports Linked Servers.

Kindly help.

UPDATE:

  • Not all databases are in azure. Some databases are with their respective owners in remote locations. We need to query database that are running outside Azure.

  • There's no VM for Sql Server in Azure. We are using Database as a service in Azure.

See the image below for more details

enter image description here

Best Answer

While not ideal, an alternative approach here could be to setup your Azure database as a subscriber to replication publications created from your on-premise database(s). Replication will allow you to limit the articles within the publication, filter the types of records, etc. which hopefully means you can minimize the publications to only send the data necessary to serve the traditional four-part queries. If you still want to utilize cross-database queries, you can always create a second Azure DB which would act as the subscriber to these publications and then utilize cross-database queries from your current Azure DB which may allow you to minimize any rewrites of existing functionality.