Re: permissions gone missing in sysprotects

From: Derek (anonymous_at_devdex.com)
Date: 02/13/05

  • Next message: Simo Sentissi: "set users to connect from only an IP aCL"
    Date: Sun, 13 Feb 2005 09:39:59 -0800
    
    

    Hi Jack, if you have the SQL 7,0 instance still available, once you have
    the objects and data in from the current production SQL 2000 instance,
    you could script the permissions from the SQL 7.0 instance using the
    ‘Generate Scripts’ option in Enterprise Manager. If you choose the
    option to ‘script all objects’ on the General Tab, then remove the
    ‘Create’ and ‘Drop’ options from the Formatting Tab and then select
    ‘Script object level permissions’ from the Options Tab, you should just
    end up with just the permissions scripts. If you run that script against
    the new SQL 2000 database, it should populate all the systems tables
    correctly. I would first remove any bad permissions from the
    syspermissions table incase they get scripted.
    Use this script to identify the bad permissions.
    select b.name, b.type, a.* from syspermissions a, sysobjects b where
    a.id = b.id
    and b.type not in ('u', 's', 'p', 'v')
    order by b.type

    Cheers

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!


  • Next message: Simo Sentissi: "set users to connect from only an IP aCL"

    Relevant Pages

    • Re: Permissions replication
      ... for a permissions script connect to your database using EM. ... the publication database, and select all tasks, generate SQL Script. ... Looking for a book on SQL Server replication? ... >>Looking for a book on SQL Server replication? ...
      (microsoft.public.sqlserver.replication)
    • Re: Script Objects (Table. SP etc.) without Permissions (Grants)
      ... the version of SQL Server you are using. ... this only excludes objects with explicit permissions. ... I want to script all objects that have no permissions granted on ... Bob Barrows ...
      (microsoft.public.sqlserver.programming)
    • Re: Script Objects (Table. SP etc.) without Permissions (Grants)
      ... the version of SQL Server you are using. ... this only excludes objects with explicit permissions. ... I want to script all objects that have no permissions granted on ... Bob Barrows ...
      (microsoft.public.sqlserver.programming)
    • RE: Export SQL Role
      ... Options button on the Copy tab and you'll see it. ... would assume it would copy permissions or else it would be no good IMO. ... > Is there a way to export a database role. ... This script would essentially create this ...
      (microsoft.public.sqlserver.server)
    • Re: Transfermation of Database User
      ... you can use EM to generate the script for the permissions and to create the ... Right-click the database and select to generate SQL. ... In the resulting script, delete the create ...
      (microsoft.public.sqlserver.replication)