How to execute SQL script via Azure Pipeline, please help, I don't want to do it via powershell. Please suggest.

Amit Srivastava 60 Reputation points
2023-05-24T08:14:53.83+00:00

How to execute SQL script via Azure Pipeline, please help, I don't want to do it via powershell. Please suggest.

Azure SQL Database
{count} votes

3 answers

Sort by: Most helpful
  1. Vinodh247 34,661 Reputation points MVP Volunteer Moderator
    2023-05-24T08:42:36.3433333+00:00

    Hi

    Thanks for reaching out to Microsoft Q&A.

    I think you are trying to execute sql script via azure data factory? let me know if its not that you are asking for.

    See the below link which demonstrates how to run a sql script using script activity in azure data factory or synapse pipelines.

    https://techcommunity.microsoft.com/t5/azure-data-factory-blog/execute-sql-statements-using-the-new-script-activity-in-azure/ba-p/3239969

    Let me know if this helped.

    Please Upvote and Accept as answer if the reply was helpful, this will be helpful to other community members.


  2. SSingh-MSFT 16,371 Reputation points Moderator
    2023-05-24T09:37:49.0433333+00:00

    Hi Amit Srivastava •,

    Thanks for posting this question.

    As I understand, you want to execute SQL script via Azure Pipeline of ADO.

    Please let us know if you have different ask.

    We request you to raise request in Azure DevOps Forum as we do not support Azure DevOps on this forum currently.

    Thank you.

    0 comments No comments

  3. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2023-05-25T16:45:07.6866667+00:00

    Hey, Assuming this you are asking about Azure devops pipeline , there is a sql script task within AUre devops pipeline else if Azure data factory, you can follow Vinodh's suggestion above

    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.