Drift Handling in ReadyRoll
We are using ready roll, configured auto deploy in all the environments. In the sqlserver development environment we added a new user and that user is not in my local databases. When we deploy a drift is detected for the new user is available in the development server.
In our environments we will have different user roles for each environments like app_user_dev, app_user_test, app_user_uat. So we like to avoid the drift detection for the user and roles .
I tried <ExcludeObjectsFromImport> in the sqlproject. No luck !
How to exclude users and roles from drift detection ?
Any help will be appreciated.
In our environments we will have different user roles for each environments like app_user_dev, app_user_test, app_user_uat. So we like to avoid the drift detection for the user and roles .
I tried <ExcludeObjectsFromImport> in the sqlproject. No luck !
How to exclude users and roles from drift detection ?
Any help will be appreciated.
Tagged:
Comments
In order to implement this, you can either add it as a property to your sqlproj file, which will prevent the role memberships being scripted both at development time (i.e. when using the ReadyRoll tool-window to generate scripts) and also during drift detection:
If you would like the role memberships to be excluded from drift detection only, you can specify the property on the command line, e.g.:
I hope this helps. Any questions or issues please let me know
Product Manager
Redgate Software