Forum Discussion

DebbieE's avatar
DebbieE
Community Champion
9 months ago
Solved

Fabric SQL Database and Visual Studio Project

Just been through all the documentation and it hasnt helpe but i guess everything is new.    I am trying to figure out how to include the Fabric SQL Database and I went through the motions of setti...
  • OnurOz's avatar
    9 months ago

    Hi DebbieE 

    If I've understood you correctly, to deploy SQL changes into a Fabric SQL Database that is under source control, you should use the Fabric deployment flow. Change your database code, commit to git (if necessary PR into fabric's branch), then use Source Control => Updates => “Update all” in Fabric UI. Then the item state is applied to the SQL Database.

    I guess it publish a SQLproj directly to Fabric SQL Database is not always working ideally, although you could use SqlPackage.exe (with /p:AllowIncompatiblePlatform=true)

    I recommend checking this page: SqlPackage for SQL database - Microsoft Fabric | Microsoft Learn and this one: Fabric SQL database source control integration - Microsoft Fabric | Microsoft Learn

    Hope that helps

    Onur


    😊If this post helped you, feel free to give it some Kudos! 👍

    And if it answered your question, please mark it as the accepted solution.