Attach and Detach database in SQL Server | copy databases in sql server | sql attach database

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • This video talks about
    sql attach database
    Detach and Attach a Database in sql
    Move DB files (mdf, ndf, ldf) in SQL Server
    sql detach and attach options
    How to Attach and Detach Databases
    sql database backup and restore options
    sql detach options
    sql attach issues
    sql attach and detach errors
    Attaching and detaching a database in SQL with simple steps
    ***************************************
    MSBI Opportunities/Jobs and Packages
    Please watch and subscribe for more videos..
    #SQLMSBI
    • MSBI Opportunities and...
    ************
    SQL DBA Tutorials | SQL DBA Interview Questions..
    • Multiple Schedules to ...
    ********************************
    Top Procedure Interview questions in SQL Server?????
    Please watch and subscribe for more videos.....
    • SQL Procedure Intervie...
    *************************
    What are the top SQL Query Interview Questions ?????
    Please watch and subscribe for more videos..
    #SQLMSBI
    • SQL Query Interview Qu...
    ************
    *******
    how to compare sql databases | sql db Comparison | compare two databases of sql | sync sql databases
    • how to compare sql dat...
    *********
    How to create and access linked server in SQL Server?
    • Create Linked Servers ...
    *********
    Log shipping in SQL Server |Sql log shipping Configuration |sql disaster recovery
    • Log shipping in SQL Se...
    **************
    Object Level Permissions in SQL | Permission to specific tables to user | sql login create and error
    • Object Level Permissio...
    *************
    how to add Multiple Schedules to SQL JOB | one job with multiple schedules | sql create job custom schedules
    • Multiple Schedules to ...
    **************
    ***********
    find sql port number | sql port issues | change port of sql server | dynamic port in sql
    • find sql port number |...
    **********
    Why do we need port number of SQL Server?
    • find sql port number |...
    **************
    *********
    SQL job history is missing | How to check sql agent job history
    • SQL job history is mis...
    ***********
    How to identify long running queries in SQL server ??
    How to identify blocking queries in SQL server ??
    #SQLMSBI
    • Long Running Queries i...
    ***************

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

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

    H, finally you cast some light on the Attach - Detach or Detach - Attach (AD/DA) method. However, at the beginning you're stating that you use DA you loose the database from the source. I understand one doesn't have to loose it and run the same database on multiple separate SQL servers (presumably even on the same server when db name is amended during attach so it doesn't clash) and there's no difference to Backup and Restore (BaR) apart from file sizes that get compressed? I also can't find any solid information on user accounts and permissions to the copieed or moved database that exist in source - logically they would be lost and manually recreated in destination?
    We currently have a 1.2TB database in SQL 2016 server that needs to be migrated over to SQL 2019 server. We would like to do a test migration so I was thinking that DA method would be the quickest as we don't have anymore space for storing SQL backup files and both servers are on the same 1Gbps or even 10Gbps LAN hence copying 1.2TB should be really quick. I would deach server A SQL 2016 db, copy files across to to server B SQL 2019 then reatttach source and attach destination to have a running exact close at this point in time in order to run some tests.
    Cheers,
    David

  • @SisoSiso-x3e
    @SisoSiso-x3e ปีที่แล้ว +1

    thanks Sir

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

    I was trying to detach my DB following your video. However, it fails to detach instead /single user/appears on the side of the DB what did I do wrong?

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

    Thankyou so much🤩

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

    Thank you.

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

    Which video editor you use for your videos? ?