Visual Studio 2019 database project

Darryl Hoar 181 Reputation points
2024-02-14T21:13:48.47+00:00

I have a Sql Server database. I have created a Visual Studio 2019 database project for this database. In the database project, when I make changes to the Stored Procedures, how do I generate a new database with these new versions of the stored procedures. thanks.

SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Greg Low 1,980 Reputation points Microsoft Regional Director
    2024-02-15T03:33:10.92+00:00

    You use the option on the Build menu, to build the project.
    That will output a .dacpac file. (You can see where that is located by looking at the text in the Output window at the bottom, as it shows the result of the Build).
    You can then deploy a .dacpac to a database using a variety of methods, but one is to use SQL Server Management Studio (SSMS), connect to the server, then right-click on Databases in Object Explorer, and choose Deploy Data-tier Application. A wizard then walks you through the deployment.


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.