Enhancement request - Syncing permissions
andersom
Posts: 29
We have some databases we keep in sync using SQL Compare, however we do not sync the DB users on the destination database.
We currently use the /options:iu,ip in order to ignore users and prevent permissions updates from failing due to noexistant users.
That said, we do sync roles. The problem is that the ip option prevents SQL Compare from updating role permissions on the destination database.
My enhancement request is this: seperate the ip option into two options; 'ignore user permissions' and 'ignore role permissions'. This would allow us to keep our database copies user-free, but maintain role security synchronicity.
We currently use the /options:iu,ip in order to ignore users and prevent permissions updates from failing due to noexistant users.
That said, we do sync roles. The problem is that the ip option prevents SQL Compare from updating role permissions on the destination database.
My enhancement request is this: seperate the ip option into two options; 'ignore user permissions' and 'ignore role permissions'. This would allow us to keep our database copies user-free, but maintain role security synchronicity.
Comments
If that doesn't work for you, that probably means that the iu option isn't working properly and we'll look into it further.
Redgate Software
ip - Ignore Permissions - will ignore all permissions.
Are you finding that just iu on its own is ignoring permissions held by roles?
Redgate Software
Redgate Software
See, because the users don't exist on the destination, omitting ip results in permission setting failing, causing the entire process to fail.
1) Create a database with a user and a table, give the user a permission on that table
2) Create another database with a table with the same name but an extra column, with no users / permissions
3) Synchronize the table with iu (and without include dependancies - include dependancies picks up the user as a dependancy even though the permission isn't going to be synchronized)
4) The table synchronizes correctly, with no 'altering permissions' step and no error.
Does this work for you? If so, can you work out what the difference is between that case and the case you're having problems with? (If you can send me some more information - ideally a snapshot of your database, but just the definition of the table that's failing may well help me track down the problem - then I'll try to work out what it is about your table that is causing the iu option to not work correctly.)
Redgate Software
For reference, my full command-line is thus:
This results in syncing tables and roles, and granting permissions to the roles, but excludes users and logins as desired.
Redgate Software
If you have a valid Support & upgrades option, you can download SQL Compare V.7 using the 'Check for updates' mechanism (SQL Compare GUI ->Help ->Check for updates)
or download using this link: HERE
SQL Compare V.7 will install along side any previous versions of the software.
Many Thanks
Eddie Davis
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com