Building and Deploying

The final item we haven’t covered is the actual act of updating a schema in a database with the schema in a database project. You use the familiar build-and-deploy paradigm leveraged by other Visual Studio project types. In the context of a database project, the build process parses all the SQL files and identifies any files that have SQL syntax errors. If the build is clean, you can now publish the database by right-clicking the project within Solution Explorer and selecting Publish (see Figure 13.28). This actually updates the target database with the schema (or creates a new database if the target database doesn’t exist).

FIGURE 13.28 Publishing a database.

Note

You don’t have to use Visual Studio to do the actual ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.