Creating a database project for a Serverless SQL pool db

pmscorca 987 Reputation points
2024-03-03T08:37:06.03+00:00

Hi,

in order to create from scratch a Synapse Serverless SQL pool database by a Visual Studio database project I'm searching a good article about this subject. F.e. I'd like know where putting the create database, create master key and create database scoped credential statements (as a pre-deployment script?) or already the db has to exist in the serverless sql pool, and so on.

Any helps to me, please? Thanks

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.
4,877 questions
{count} votes

Accepted answer
  1. Greg Low 1,760 Reputation points Microsoft Regional Director
    2024-03-03T10:30:26.47+00:00

    For the database, you set how you want the database configured in the project properties. In there, you'll find database settings.

    For the master key and database scoped credentials, you just add those as objects within the database project.

    One tip though: I've found if you have the master key and the database scoped credentials in separate .sql script files (i.e., one per object), it throws errors if you try to build. Put the master key definition and the database scoped credentials in a single .sql file. But yes, it can just live in the security node in your project.


0 additional answers

Sort by: Most helpful

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.