DML Operations in AzureSQL PaaS on External Databases

grajee 371 Reputation points
2020-12-18T18:21:57.303+00:00

All,

We are migrating our database from SQLServer 2012 to AzureSQL PaaS DB. In lot of stored procedures, we have code as below:

USE ClaimDB1
GO

Delete ClaimDB2.dbo.Claims
Where Claimdate < ‘12/01/2020’

Given that DML operations are not allowed on EXTERNAL TABLEs, what are the various patterns of accomplishing the same in the AzureSQL PaaS world?

Thanks,
grajee

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,916 Reputation points Volunteer Moderator
    2020-12-19T15:42:33.54+00:00

    Please see if you can make use of sp_execute_remote SP - solution given in similar thread

    https://stackoverflow.com/questions/40631031/cross-database-dml-query-in-azure-sql


    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

    0 comments No comments

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.