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: 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)
    • A couple of quick questions about SQL Server 6.5
      ... I have a couple of quick questions to do with SQL 6.5. ... sp_foreachtable to step though all the user tables and list the permissions ... When I use the generate SQL Script, to have it script up all the ... Is there a way to have the passwords ...
      (microsoft.public.sqlserver.server)
    • SQL Code behind a button on a tabpage subform
      ... I need to have a button on my tab page, that when clicked will do an SQL of ... from Employee;) I need to have this value available as an ... integer in the button script. ...
      (microsoft.public.access.formscoding)