Users created even if I uncheck them

andnaessandnaess Posts: 2
edited September 29, 2008 12:42PM in SQL Packager Previous Versions
Hi

I'm testing my SQL Packager trial on our development server. This server has login accounts for all the developers, and even though I uncheck the corresponding user objects when selecting what objects to include in the schema, the generated schema file contains CREATE LOGIN and CREATE USER statements for the users I've unchecked. Any ideas as to what I'm doing wrong?

Comments

  • If you've got objects that depend on having those users in the database (e.g. the user has permissions on an object, the user owns an object or a schema) then the users will be brought along because otherwise the script wouldn't run.

    You can normally shake most of them by enabling the option 'ignore users' permissions and role memberships', but obviously this will also not synchronize permissions and role memberships for other users that you might have wanted to include.

    If you're sure the script will be fine afterwards you can uncheck 'Include dependencies' which will stop this happening, but that means you'll have to check manually that all of the relevant objects are in place in the target database.
    Software Developer
    Redgate Software
  • Hi,

    Were you able to try out Michelle's suggestions and exclude the users and logins in the end? We’ve just released a version of SQL Packager 6 that allows you to edit a script before packaging, which may help.
    See http://www.red-gate.com/MessageBoard/vi ... php?t=7743
    Kind regards,

    David Atkinson
    Product Manager
    Red Gate Software
    David Atkinson
    Product Manager
    Redgate Software
Sign In or Register to comment.