I need to automate SQL Server DB deployment using Azure DevOps. I don't want to give any alter statement. I will have a folder structure with tables, stored procedures, views & functions in repository. Every folder will contain only create scripts. Is there anyway to create DacPac file with that folder structure or any other way, other than DacPac deployment using that folder structure?
Note: I don't want to create DB project using Visual Studio. And I don't want to create a DacPac file directly from SQL Server Management Studio and checkin the same to source control. And I am not in a situation to pay for license.
dacpacis the script files, or rather, the definitions of all objects as script.I don't want to create DB project using Visual Studiowhy?And I am not in a situation to pay for license.what license? There are no licenses involved. Adacpacis the output of a Database Project. Both SSDT and SSMS are free standalone downloads. You can also use Azure Data Studio if you want to work on Linux or Mac. Neither of these requires any licensesqlprojfor this that includes files using a wildcard. You can build the package withdotnet build