Re-Importing/Updating a SQL Server database project after I modify the DB in Mgmt Studio

后端 未结 1 540
甜味超标
甜味超标 2021-02-04 06:57

My team is working with a .NET 2008 DB Project in their solution so we have some way to persist the schema between machines and through development and keep things consistent.

1条回答
  •  醉梦人生
    2021-02-04 07:25

    To update your projects's schema you can use "Schema compare" feature from Data menu. Choose your development database as Source, your database project as Target and get schema comparasion as result. It will find what you have changed since project creating and will show you diffs for tables and other database objects. So you will be able to look through these changes and skip some of them if you like. Then click "Write updates" and your changes are added to the project.

    0 讨论(0)
提交回复
热议问题