ignore users and roles by filter in sql source control

https://www.red-gate.com/hub/product-learning/sql-source-control/source-controlling-database-permissions

Adding a User filter in SQL Source Control

Like the Ignore users’ option, we now want to filter out any User objects from being committed to source control, as well as ensuring any already in source control aren’t deployed. To do this, add the filter and commit it to source control:

  1. With your database selected, go to the SQL Source Control window in SSMS and choose Setup
  2. Under Options just for this database, choose Edit filter rules…
  1. Un-check User near the bottom of the list on the left and click Save and close.
  2. On the Commit changes tab, refresh and commit the Filter New change with a suitable comment.

When deploying from your SQL Source Control repository or using SQL Release, be sure to filter out Users or use the Filter file which is now in your repository and database package.

 

posted @ 2018-08-13 09:47  ChuckLu  阅读(321)  评论(0编辑  收藏  举报