ignore users and roles by filter in sql source control
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:
- With your database selected, go to the SQL Source Control window in SSMS and choose Setup
- Under Options just for this database, choose Edit filter rules…
- Un-check User near the bottom of the list on the left and click Save and close.
- 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.