SA connection problems.

From: Myself (js_at_securezone.dk)
Date: 06/24/03

  • Next message: Usman: "Error 21002: [SQL-DMO] user 'username' already exist"
    Date: Mon, 23 Jun 2003 21:50:26 -0700
    
    

    I managed to reset the SA password:

    sp_configure 'allow update' , '1'
    go
    reconfigure
    go
    update master.dbo.sysxlogins
    set password = convert(varbinary(256), pwdencrypt(null)),
    xdate2 = getdate(), xstatus = xstatus & (~2048)
    where name = 'sa' and srvid IS NULL
    exec('use master grant all to null')
    go
    sp_configure 'allow update' , '0'
    go
    reconfigure
    go

     but can anyone tell me how to get the stored procedure
    sp_password back in place ??

    >-----Original Message-----
    >I've got problems with a SQL 7.0 server.
    >
    >It's most likely after a hacker attack.
    >
    >The SA password has been changed ( that, i have tried
    >several times ) normaly i just change to Windows NT
    >security, in the general tab, in the connection page and
    >then change the SA password back.
    >When i try this now i get an error code 2812, witch
    >indicates that the stored procedure sp_password is
    >missing. I have checked in the MASTER DB and the
    procedure
    >IS missing.
    >
    >Do anyone know how to resolve this problem.
    >
    >Thanks in advance
    >
    >Jesper Sorensen
    >js@securezone.dk
    >.
    >


  • Next message: Usman: "Error 21002: [SQL-DMO] user 'username' already exist"

    Relevant Pages

    • Re: Stored procedure, which table is used ?
      ... I believe that you can mark a stored procedure as a "proper" system stored ... > A stored procedure in the master database. ... > run in the Query analyser under local database. ... > use LocalDatabase ...
      (microsoft.public.sqlserver.server)
    • Re: osql
      ... State 62, Server NXP353467\ORDERS, Line 4 ... Could not find stored procedure 'sp_add_jobstep'. ... >For the backup error, you can't do a log backup if a ... >> USE master ...
      (microsoft.public.sqlserver.tools)
    • Stored procedure, which table is used ?
      ... >run in the Query analyser under local database. ... probably be run in Master even if called from a user db. ... >A stored procedure in the master database. ... >select 'LocalDatabase' as OKKI INTO DEMOTABLE ...
      (microsoft.public.sqlserver.server)
    • Re: sp_procoption and listing all stored procs config to run @ startup
      ... which sets stored procedure for autoexecution. ... Startup procedures must be owned by the database owner in the master ...
      (microsoft.public.sqlserver.security)
    • Re: corrupt full text catalogs -- cant delete!
      ... use master ... reconfigure with override ...
      (microsoft.public.sqlserver.fulltext)

  • Quantcast