What are the challenges you face when working across database platforms? Take the survey

<exclude>Role</exclude> not working

joemombergjoemomberg Posts: 8
edited May 26, 2016 3:20PM in SQL Compare 11
The following argument file for sqlcompare command line has the unexpected result of including the roles and schemas:
<?xml version="1.0" encoding="utf-8"?>


Role db_securityadmin == ==
Role db_accessadmin == ==
Role db_denydatareader == ==
Role db_denydatawriter == ==
Role db_backupoperator == ==
Schema guest == ==
Schema dbo == ==
Schema db_ddladmin == ==
Schema db_backupoperator == ==
Schema db_datareader == ==
Schema sys == ==
Schema db_datawriter == ==
Schema db_denydatareader == ==
Schema db_denydatawriter == ==
Schema db_owner == ==
Schema db_accessadmin == ==
Schema db_securityadmin == ==

Any ideas? Thanks


  • Options
    Hey joemomberg,

    Thanks for contacting us and sorry you are having this issue!

    Did you have this xml script working previously?
    If you remove the <exclude> lines then does it still compare the roles?
    (it should only compare the items that are explicitly included unless you have the "IncludeDependencies" option on as well)
    What version of SQL Compare are you using?

    I will follow up with you via email for further troubleshooting.

    Kind Regards,
    Andrew Pierce
    Technical Sales Engineer
    Redgate Software
  • Options
    This is also an issue in the SQL Compare UI When deselecting schemas, roles, and users, the script generation still deploys missing users and schemas, and then role memberships for users who are members of a role, at least in my case it does this for any role that has permissions on the object I'm deploying.
  • Options
    I'm using
    The script hasn't worked before and I've just tried with the exclude tags taken out. It's not too much of a problem, would just be nice to have a clean output.
  • Options
    Hey Batts,

    By default the "include dependencies" option is enabled in the command line- in the GUI it will give you the opportunity to include or exclude dependencies.

    To Joe,

    I highly recommend you upgrade to v11 and retest - v11 installs alongside v10 so you can revert painlessly.

    Kind Regards,
    Andrew Pierce
    Technical Sales Engineer
    Redgate Software
  • Options
    I'm working on sweet talking our procurement folk into an upgrade to v11.
    I can see the incd option but there doesn't appear to be an exclude dependency option though?
  • Options
    krshortkrshort Posts: 12 Bronze 1
    I'm having the same difficulties, and I believe my problem may be related to the default behavior of the command line. How do I Exclude Dependencies using command line?

Sign In or Register to comment.