September 27, 2022 at 2:52 pm
Hi there
We have been creating a DACPAC from a SQL server database project withing .Net Rider using the
SQL Package command.
This has been removing and replacing the database on target machines.
But is there a way to just update a database rather than replace it?
Can this be done by creating a dacpac which just has updated objects...or to place a switch in the
SQLPackage command to update the database only?
September 27, 2022 at 3:19 pm
Yes there is.
SQLPackage /Action:Publish, with appropriate parameters.
Set the CreateNewDatabase flag to false.
September 27, 2022 at 3:58 pm
thanks Phil
I tried this in my arguments
/p:CreateNewDatabase:False
and i got the following error message:
'CreateNewDatabase:False' is not a valid argument for the 'Publish' action.
September 27, 2022 at 4:00 pm
sorry Phil.. I figured it out
/p:CreateNewDatabase=False
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy