Point in time restore in SQL Server || How to restore a database to a specific point in time ||MsSQL

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

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

  • @SindhuK-t4y
    @SindhuK-t4y 11 หลายเดือนก่อน

    Superb explanation and well done , thank you 🙂

  • @harikachinni6963
    @harikachinni6963 2 ปีที่แล้ว +2

    Thank you so much.. Very clear n helpful session!

  • @jsprite123
    @jsprite123 4 หลายเดือนก่อน

    Thank you! Question: In T-SQL you can restore down to the seconds, but in the GUI only down to the minutes?

  • @surajmochi6875
    @surajmochi6875 5 หลายเดือนก่อน

    Thanks man, you saved my day :)

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

    Very well explained ...👍👍👍👍

  • @nishithmendon4637
    @nishithmendon4637 ปีที่แล้ว

    Fantastic. Thank you so much. 🙏

  • @orturizkyjp9503
    @orturizkyjp9503 ปีที่แล้ว

    So can I restore today's data to the previous 3 days just using full data recovery?

  • @sqlserver6395
    @sqlserver6395 2 ปีที่แล้ว +2

    Hi do database is in recovery pending. And if backups are not available we can do in that case.

    • @righttolearnbk
      @righttolearnbk  2 ปีที่แล้ว +1

      You will have LSN mismatch

    • @sqlserver6395
      @sqlserver6395 2 ปีที่แล้ว +1

      @@righttolearnbk database goes into recovery pending and backups are not available to restore a database then how we can bring database to online

    • @righttolearnbk
      @righttolearnbk  2 ปีที่แล้ว +2

      @@sqlserver6395if Database is in restoring state then use below query to bring it online
      restore Database [database_name] with recovery

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

    Excellent session. Waiting for your next video :)

  • @Roopesh-BH
    @Roopesh-BH ปีที่แล้ว

    Super bro.. Good explanation.

  • @smart-vh4xs
    @smart-vh4xs 8 หลายเดือนก่อน

    Hi bro ,
    I have one doubt
    Weekly Full backup at every Sunday 12pm
    Remaining all days differential back up Monday to Saturday
    Every 30 minutes log back up
    At the Sunday full backup was crashed how can we recovery the point in time recovery please let me i have faced in this interview at yesterday

    • @SQL_SERVER_DBA_TELUGU
      @SQL_SERVER_DBA_TELUGU หลายเดือนก่อน

      RESTORE DATABASE YourDatabase FROM DISK = 'Path\To\Your\FullBackup.bak' WITH STANDBY = 'Path\To\Your\UndoFile.undf';

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

    Nice explanation

  • @AT-tb1hf
    @AT-tb1hf 2 ปีที่แล้ว +1

    Hi , I love your videos . I would really appreciate if u can plz make videos on SQL performance tunning and solving high cpu usages.

    • @righttolearnbk
      @righttolearnbk  2 ปีที่แล้ว +2

      Ok. I will start as early as possible

    • @AT-tb1hf
      @AT-tb1hf 2 ปีที่แล้ว +2

      @@righttolearnbk thank you so much and looking forward to it 🙂

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

      @@righttolearnbk hi bro .. always on features with full detailed video ..pls pls help

  • @vaibhavsingh3247
    @vaibhavsingh3247 5 หลายเดือนก่อน

    Just like snowflake, does SQL server not support TimeTravel????
    In Snowflake, one do not need to run a query to store a backup, instead we define a retention_time of table, and you can restore any number of days of historical data within retention_time defined.

    • @righttolearnbk
      @righttolearnbk  หลายเดือนก่อน

      you can use third party tools for that.

  • @sqlserver6395
    @sqlserver6395 2 ปีที่แล้ว +1

    Do one video on log file full on Ag database and how we can trouble shoot and bring log file to normal state

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

      yes u have to make it from sync to async and then need to check if its not bring down take logbackup and shrink after done ur process make it as before

  • @1991alpesh
    @1991alpesh 9 หลายเดือนก่อน

    Any script to restore database on schedule automatically

  • @faiqaizaz1998
    @faiqaizaz1998 2 ปีที่แล้ว +1

    Take tail log backup with no_truncate option.restore log 2 stopat with no recovery and finally restore tail log backup with recovery.

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

    Next two rows add we get to by using tail log BACKUP

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

    Nice one

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

    6:08 pm onwards we can take the backup

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

    Upto 6.04.59 we restore with norecovery
    Then again we restore that latest backup file with recovery

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

    I did the below.. and all restored. but the table still does not have the recoed 104.
    RESTORE DATABASE DB123
    FROM DISK = 'D:\SQL_DATA\PRODUCT\PRODUCT_FULL_1.BAK' WITH NORECOVERY, REPLACE
    RESTORE DATABASE DB123
    FROM DISK = 'D:\SQL_DATA\PRODUCT\PRODUCT_DIFF_1.BAK' WITH NORECOVERY
    RESTORE LOG DB123
    FROM DISK = 'D:\SQL_DATA\PRODUCT\PRODUCT_LOG_2.TRN' WITH RECOVERY, STOPAT = '2022-07-04 17:37:59'

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

      The delete timestamp might be incorrect. Please watch this video for more clarity
      th-cam.com/video/NEQW1RUgpJ8/w-d-xo.html

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

    Please make a video on LSN

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

    nice

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

    STOPAT SCRIPT IS WRONG PLEASE EXECUTE AND EXPLAIN

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

      It executed successfully. Please refer below MS docs
      docs.microsoft.com/en-us/sql/relational-databases/backup-restore/restore-a-sql-server-database-to-a-point-in-time-full-recovery-model?view=sql-server-ver16