Logins backup

  • Hello everyone,

    I am taking daily backups for databases...

    Once DB crash,then i can restore thats ok

    data will come everything is fine.........

    Then what abt logins...

    We need to take the backup for logins also...????

    How to take the backup for server logins..????

    Thanks,

  • Logins are in the master database. You should be backing that (and msdb and model) up on a regular basis.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Thanks Gail Shaw,

    Eg:

    Daily i am taking the backup of all DB's in F drive (except system DB's)

    System DB's in G drive

    All (system db's & user databases) files are removed from C drive (original mbf * ldf)

    So if i restore everything from F & G, i will get databases & data as well

    can i get logins ???

  • Wait a minute... How are you backing up these databases?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I created maintainence plan for all databases..

  • So you're doing SQL backups (creating .bak files) for all the system and user databases?

    If you have, then restoring all of those (restore database) will get the logins and data back. Check Books Online, the procedure for restoring master is not the same as for user databases.

    Have you ever tested a restore?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply