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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access