Cross Database Quries migartion from SQL Server 2008 to Azure SQL Database

Sarvesh Pandey 141 Reputation points
2021-01-29T10:53:50.317+00:00

I have a On-premise SQL Server 2008 sp1 Enterprise edition. I want to migrate the database to Azure SQL Database but there are some migration blockers.
One of them is cross database queries.
Do we have to change the queries before migration but SQL Server 2008 doesn't external tables which is supported in Azure SQL Database.
How can we solve Cross Database Migration Blockers?

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 32,906 Reputation points MVP
    2021-01-29T11:03:14.9+00:00

    Hey @Sarvesh Pandey ,
    The steps for you to migrate would be :

    1. create a similar table schema (of source db) in the database(querying one) and replace the cross db queries with the new tables created within database
    2. Then migrate the databases as Azure SQL databases
    3. update the newly created tables from normal to External tables to do cross queries

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.