How to Backup and Restore a Database in SQL Express

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 8

  • @iacobradu2899
    @iacobradu2899 5 месяцев назад +1

    Hey, nice video. Its mandatory to use master before doing the backup?

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  5 месяцев назад

      It is not mandatory for the backup, but more of a best practices thing. When you start backing up, restoring, adding & removing logins and permissions, you'll be changing context all the time so it is good to explicitly say where you want to "work" before performing script operations.

  • @ballaomer6738
    @ballaomer6738 5 месяцев назад +1

    Great tutorial sir , appreciate it ❤

  • @sudarsonoliyis
    @sudarsonoliyis 5 месяцев назад +1

    Can I run the sql from my access , so backup can be done everyday from my database?

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  5 месяцев назад +1

      You can, using an ADO connection. Good topic for a video actually! One way that people do a daily backup is to use Windows Scheduler to call a simple script to execute the batch each day/hour/week/etc This way, if your Access db is not open, it will still run the backup.

    • @sudarsonoliyis
      @sudarsonoliyis 5 месяцев назад +1

      @@seanmackenziedataengineering thanks for the insight, just done integrate your backup sql code to my database and it works

    • @seanmackenziedataengineering
      @seanmackenziedataengineering  5 месяцев назад

      @@sudarsonoliyis nice!