- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
Lesson 6: Removing Database Mirroring in VS .NET
Lesson 6: Removing Database Mirroring PDF 417 Maker In VS .NET Using Barcode encoder for Visual Studio .NET Control to generate, create PDF417 image in .NET framework applications. www.OnBarcode.comDecode PDF417 In Visual Studio .NET Using Barcode reader for VS .NET Control to read, scan read, scan image in .NET applications. www.OnBarcode.comLesson 6: Removing Database Mirroring
Barcode Drawer In .NET Framework Using Barcode printer for Visual Studio .NET Control to generate, create bar code image in .NET applications. www.OnBarcode.comBarcode Recognizer In Visual Studio .NET Using Barcode scanner for .NET framework Control to read, scan read, scan image in Visual Studio .NET applications. www.OnBarcode.comAfter it is configured, you should remove database mirroring only in extreme cases. By removing database mirroring, you terminate all data transfer between the principal and the mirror databases. In this lesson, you learn when to remove database mirroring and how to perform this task. Paint PDF-417 2d Barcode In C# Using Barcode encoder for VS .NET Control to generate, create PDF-417 2d barcode image in .NET applications. www.OnBarcode.comEncode PDF417 In Visual Studio .NET Using Barcode maker for ASP.NET Control to generate, create PDF 417 image in ASP.NET applications. www.OnBarcode.comAfter this lesson, you will be able to: Draw PDF-417 2d Barcode In VB.NET Using Barcode generator for .NET framework Control to generate, create PDF417 image in .NET applications. www.OnBarcode.comBarcode Drawer In .NET Using Barcode creator for .NET Control to generate, create bar code image in VS .NET applications. www.OnBarcode.comRemove database mirroring.
Bar Code Maker In VS .NET Using Barcode maker for VS .NET Control to generate, create bar code image in Visual Studio .NET applications. www.OnBarcode.comCode-128 Generator In .NET Framework Using Barcode creation for .NET framework Control to generate, create Code128 image in Visual Studio .NET applications. www.OnBarcode.comEstimated lesson time: 10 minutes
Data Matrix Maker In VS .NET Using Barcode encoder for .NET framework Control to generate, create DataMatrix image in .NET applications. www.OnBarcode.comUSD - 8 Encoder In .NET Framework Using Barcode generation for .NET Control to generate, create Code 11 image in Visual Studio .NET applications. www.OnBarcode.comRemoving Database Mirroring
Data Matrix 2d Barcode Encoder In None Using Barcode creation for Software Control to generate, create Data Matrix ECC200 image in Software applications. www.OnBarcode.comEncode Bar Code In .NET Framework Using Barcode drawer for ASP.NET Control to generate, create bar code image in ASP.NET applications. www.OnBarcode.comYou should remove database mirroring only under the following circumstances: Make Code 39 Extended In VS .NET Using Barcode creation for ASP.NET Control to generate, create Code 39 image in ASP.NET applications. www.OnBarcode.comGS1-128 Encoder In Objective-C Using Barcode encoder for iPad Control to generate, create EAN / UCC - 13 image in iPad applications. www.OnBarcode.comYou no longer want to mirror a database. The principal has been damaged to such an extent that it would be easier to reinitialize the entire environment. Scan PDF-417 2d Barcode In .NET Framework Using Barcode recognizer for Visual Studio .NET Control to read, scan read, scan image in VS .NET applications. www.OnBarcode.comEncoding Data Matrix ECC200 In .NET Framework Using Barcode creation for ASP.NET Control to generate, create Data Matrix ECC200 image in ASP.NET applications. www.OnBarcode.comYou can remove a database mirroring session by clicking Stop Mirroring within the Database Properties, Mirroring page for the principal database. This step immediately terminates the database mirroring session. When you click Stop Mirroring, the GUI issues the following single command to terminate the database mirroring session: Generating UCC.EAN - 128 In Objective-C Using Barcode printer for iPhone Control to generate, create EAN 128 image in iPhone applications. www.OnBarcode.comPDF-417 2d Barcode Scanner In None Using Barcode decoder for Software Control to read, scan read, scan image in Software applications. www.OnBarcode.comALTER DATABASE <database name> SET PARTNER OFF
Instead of using the GUI, you can alternatively issue this command at either the principal or mirror database to remove database mirroring. Quick Check
How do you terminate a database mirroring session You can immediately terminate a database mirroring session by clicking Stop Mirroring on the Database Properties, Mirroring page or issuing a single ALTER DATABASE command from either the principal or the mirror database. Quick Check Answer
17
Implementing Database Mirroring
PRACTICE
Removing Database Mirroring
In this exercise, you will practice removing database mirroring. 1. Right-click the AdventureWorks database on the principal instance and choose Properties. 2. In the Mirroring page, click Stop Mirroring. NOTE
Transact-SQL alternative to remove mirroring
Clicking Stop Mirroring in the GUI is equivalent to issuing the ALTER DATABASE AdventureWorks SET PARTNER OFF Transact-SQL command from either the principal or the mirror database. Lesson Summary
Remove a database mirroring session only in an extreme case, such as when the principal becomes damaged beyond repair, or if you have decided that database mirroring is no longer needed. To remove database mirroring, you can click Stop Mirroring on the Mirroring page or issue an ALTER DATABASE command from either the principal or the mirror. Lesson Review
The following questions are intended to reinforce key information presented in this lesson. The questions are also available on the companion CD if you prefer to review them in electronic form. NOTE
Answers
Answers to these questions and explanations of why each answer choice is right or wrong are located in the Answers section at the end of the book. 1. To terminate the database mirroring session, you can issue the ALTER DATABASE command against which partners (Choose all that apply.) A. Principal B. Mirror C. Witness D. Distributor 17 Review
Review
To further practice and reinforce the skills you learned in this chapter, you can
Review the chapter summary. Review the list of key terms introduced in this chapter. Complete the case scenario. This scenario sets up a real-world situation involving the topics of this chapter and asks you to create solutions. Complete the suggested practices. Take a practice test. Summary
Database mirroring provides a major new technology for achieving high availability for your databases. Data is securely synchronized between two databases a principal database and a mirror database on separate instances of SQL Server. When configured in High Availability operating mode, database mirroring synchronously transfers transactions between the principal and mirror databases. This operating mode requires a witness server, which arbitrates the automatic failover to the mirror when the principal becomes unavailable. When configured in High Performance operating mode, database mirroring asynchronously transfers transactions between the principal and mirror databases. Because of the asynchronous transfer, application performance is not affected, but the failover to the mirror requires manual intervention. Perform manual failover at the mirror server by issuing a single ALTER DATABASE statement with the FORCE_SERVICE_ALLOW_DATA_LOSS option. Removing database mirroring is an easy step within the GUI or via the TransactSQL ALTER DATABASE statement, but it should be done only in extreme cases or if you do not want to mirror a database any more.
|
|