Rewriting Code to call a remote SP

grajee 331 Reputation points
2020-11-10T02:54:01.047+00:00

All,

We are planning to migrate our On-Prem SQLServer databases to Azure SQL PaaS DBs with the databases being placed an in Azure Elastic Pool.

In the On-Prem database code, in several Stored Procedures, we call a SP in other databases , ie, Exec LogDB.dbo.usp_log_info and this needs to be rewritten.

Can sp_execute_remote be used to rewrite such code? We will be using External Data Sources and External Tables to handle cross-database queries.

Thanks,
grajee

Azure SQL Database
0 comments No comments

1 answer

Sort by: Newest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

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