Run SQL scripts stored in Synapse dev instance on PPE & PROD env

Suraj Tripathi 77 Reputation points
2022-12-08T03:53:19.56+00:00

Requirement is to run SQL scripts stored in Synapse Dev instance on subsequent PPE & PROD env. Please keep in minds following points :

  1. In Synapse dev workspace, sql files are stored as .sql files
  2. When pushed to repository, the files are stored as .json files.
  3. During CD release pipeline the code flow through the env from dev to ppe and then to production.
  4. But we also want to execute our sql scripts during release pipeline so that the changes in database would also flow through.

Please let me know how to do that.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2022-12-10T01:28:46.817+00:00

    Hello @Suraj Tripathi ,

    I see the only option to execute SQL scripts via Azure DevOps is using PowerShell or by using the extension “Azure SQL database deployment” and selecting Deploy type as "SQL dacpac file" or "SQL script file"

    This blog explains how to deploy the SQL scripts using the dacpac file. Since you have multiple SQL files, you can use the dacpac file method.

    I hope this helps. Please let me know if you have any further questions.

    269151-image.png

    ------------------------------

    • Please don't forget to click on 130616-image.png and upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.

  2. 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.


    Comments have been turned off. Learn more

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.