I’m using a database project (not the new database project that comes with Microsoft SQL Server Data Tools) to manage my team database changes and source control benefits.
Now there are some tables that provide simple functionality and are created in the process of normalization. For example: AddressType table that may hold these values: Office, Home, and Mail. Now this table will always have these three values.
Can I somehow, using the database project, have the three default values inserted if the table doesn’t already have them? If so, where do I put the IF/INSERT script for data?
Thanks.
Something like this in your post-deployment script: