SQL Server DBA Tutorial 83-How to Restore Master database in SQL Server

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024
  • In this video you will learn how to restore master database from backup using SQLCMD as well as using SQL Server management studio. It also demonstrates how to start SQL Server in single user mode and work around to the error " Can't login as SQL Server is in single user mode" even after turning off SQL Server Services.
    Blog post link for this video:
    sqlage.blogspot...
    Visit our website to check out SQL Server DBA Tutorial Step by Step
    www.techbrother...

ความคิดเห็น • 20

  • @BetterWorldOrder
    @BetterWorldOrder 4 ปีที่แล้ว

    Great demo. Very easy to follow. Restoring the system db's is something I hadn't done and yes, the single user mode was a challenge. Not anymore. :) Thanks.

  • @ManDaily
    @ManDaily 2 ปีที่แล้ว

    Hi, Techbro I'm your number one fan on TH-cam and I appreciate your commitment! My question is after manually restoring the master database SQL Server Browser, the SQL server agent, and SQL Server full-text filter not running or at a stop line! Why you are not restarting all services. can explain to me, please?

  • @KrishnaGupta-v4x
    @KrishnaGupta-v4x 3 หลายเดือนก่อน +1

    Thanks bro this is useful.

  • @mahabub725
    @mahabub725 4 ปีที่แล้ว +1

    how to restore a TDE protected database without the Certificate or muster key? Please

  • @nasarazam
    @nasarazam 8 ปีที่แล้ว +1

    Excellent video. I am trying to mimic a DR situation and was able to restore the master to a different server/instance. However, SQL will not start now and get load of error messages in the error file. how do you resolve this?
    Also of the master is corrupt, what do you do? Rebuild?

    • @KefashWhite
      @KefashWhite 6 ปีที่แล้ว

      I'm having this exact same issue how did you resolve it?

  • @captainhaxs
    @captainhaxs 3 ปีที่แล้ว

    could i use this method to migrate the database to a new sql server + sccm 2006?

  • @1487atul
    @1487atul 4 ปีที่แล้ว

    I have few queries given below
    U restored the master db using command prompt which was successful so the user “Raza” faded as it was created after the master backup was taken.
    That’s why after successfully restoration of master DB u were not able to login using user “Raza”
    Then u ran the ssms as administrator then “how you were able to login using the same user “Raza” as it was faded” after master dB restoration??”
    Please clarify the above answer ASAP.

  • @SofiaMajhi
    @SofiaMajhi 4 ปีที่แล้ว

    Thank u so much. It really helps.

  • @imrannoor516
    @imrannoor516 5 ปีที่แล้ว +1

    Man U Guys are awesome

  • @tamerawad9593
    @tamerawad9593 5 ปีที่แล้ว

    why we have to switch to single mode?

  • @kartheek2hot
    @kartheek2hot 8 ปีที่แล้ว

    Hi tech brothers IT ,
    First of all thanks to you for the SQL server Dba videos . It really helping us to gain the knowledge .
    1 question:What's the purpose of restoring master db in SQL server? What will be the reasons generally?

    • @nasarazam
      @nasarazam 8 ปีที่แล้ว

      You made many changes and then realized that you need to revert back all the changes. This video is very good, however it did not cover two things. What do you do when master is corrupt. In this scenario SQL Server will not even start. Second is in DR situation where you need to restore master to a Server/Instance with a different name.

    • @kamildubiel8515
      @kamildubiel8515 8 ปีที่แล้ว

      If you have backup of everything (database and Master). You can did fast rebuild:
      Using CMD:
      1. cd C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\SQLServer2014
      2. Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=InstanceName
      /SQLSYSADMINACCOUNTS=YourUsername /SAPWD=YourPassword
      /SQLCOLLATION=Latin1_General_CI_AS_KS_WS
      How i think u can do it without changing SQLCOLLATION.

    • @ManDaily
      @ManDaily 2 ปีที่แล้ว

      Without master DB the server is not back online

  • @udhayashankar5412
    @udhayashankar5412 4 ปีที่แล้ว

    Bro I have got an error like:An exception occurred while enqueueing a message in the target queue. Error: 33009, State: 2. The database owner SID recorded in the master database differs from the database owner SID recorded in database 'xxxxx'. You should correct this situation by resetting the owner of database 'xxxx' using the ALTER AUTHORIZATION statement. How to clear this error can u please post video regarding this error

    • @TechBrothersIT
      @TechBrothersIT  4 ปีที่แล้ว

      Are you getting this error while restoring the master database or you are restoring other user database?

    • @udhayashankar5412
      @udhayashankar5412 4 ปีที่แล้ว

      @@TechBrothersIT no this error came after we made restart the machine for the weakly maintenance activity... I checked ssms were connecting or not ... when I check sql log viewer I got this error.....

    • @TechBrothersIT
      @TechBrothersIT  4 ปีที่แล้ว

      You can view required owner and change it to that - if db owner was changed somehow (restored from other server or backup with previous owner) that’s when you get this message, you can look at login SID and SID that master has and change it to that, after that you can modify with sysadmin permissions and it should update automatically in master.