Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari iniPelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
Applies to:
SQL Server
The database owner can manually stop a database mirroring session at any time, at either partner.
When mirroring is removed, the following occurs:
The relationship between the partners and between each partner and the witness breaks permanently, if any relationship exists.
If the partners are communicating with each other when the session is stopped, their relationship is immediately broken on both computers. If the partners are not communicating (the database is in a DISCONNECTED state at the time of stopping), the relationship is broken immediately on the partner from which mirroring is stopped; when the other partner tries to reconnect, it discovers that the database mirroring session has ended.
Information about the mirroring session is dropped, unlike when pausing a session. Mirroring is removed on both the principal database and the mirror database. In sys.databases, the mirroring_state column and all other mirroring columns are set to NULL. For more information, see sys.database_mirroring (Transact-SQL).
Each partner server instance is left with a separate copy of the database.
The mirror database is left in the RESTORING state (see the state column of sys.databases), because the mirror database was created by using RESTORE WITH NORECOVERY. At this point, you can drop the former mirror database or restore it using WITH RECOVERY. When you recover the database, it will have diverged from the former principal database because the recovery starts a new recovery fork.
Nota
To continue mirroring after stopping a session, you must establish a new database mirroring session. If you create a log backup after stopping mirroring, you must apply it to the mirror database before restarting mirroring.
To remove database mirroring
To start database mirroring
Establish a Database Mirroring Session Using Windows Authentication (SQL Server Management Studio)
Establish a Database Mirroring Session Using Windows Authentication (Transact-SQL)
ALTER DATABASE Database Mirroring (Transact-SQL)
Database Mirroring (SQL Server)
Pausing and Resuming Database Mirroring (SQL Server)
sys.databases (Transact-SQL)
Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari iniLatihan
Modul
Get started with SQL Database in Microsoft Fabric - Training
Learn how SQL Database in Microsoft Fabric works, the key concepts, and practical examples to help users SQL Database effectively as part of their analytics solutions.
Pensijilan
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.
Dokumentasi
Pause & resume a database mirroring session - SQL Server Database Mirroring
Learn how to pause and resume a SQL Server database mirroring session using SQL Server Management Studio or Transact-SQL (T-SQL).
ALTER DATABASE Database Mirroring (Transact-SQL) - SQL Server
ALTER DATABASE Database Mirroring (Transact-SQL)
Remove Database Mirroring (SQL Server) - SQL Server Database Mirroring
Learn how to remove database mirroring from a database by using SQL Server Management Studio or Transact-SQL in SQL Server.