Bỏ qua để tới nội dung chính
Đăng nhập với Microsoft
Đăng nhập hoặc tạo một tài khoản.
Xin chào,
Chọn một tài khoản khác.
Bạn có nhiều tài khoản
Chọn tài khoản bạn muốn đăng nhập.
Tiếng Anh
Chúng tôi rất tiếc. Bài viết này không có bằng ngôn ngữ của bạn.

Microsoft distributes Microsoft SQL Server 2012 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 fix release.

Symptoms

Consider the following scenario:

  • You create an availability group by using the New Availability Group Wizard in Microsoft SQL Server Management Studio for Microsoft SQL Server 2012.

  • You select the Full or the Join only data synchronization preference on the Select Data Initial Synchronization page.

  • On the Summary page, you click Script in order to receive automatically generated scripts.

In this scenario, the generated scripts skip the steps that join an existing secondary database to the availability group. Therefore, if you try to use these scripts to create an availability group, the availability group cannot come online.

Resolution

Service pack information for SQL Server 2012

To resolve this problem, obtain the latest service pack for SQL Server 2012. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

2755533 How to obtain the latest service pack for SQL Server 2012

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Workaround

To work around this issue, manually add the missing steps. Specifically, add the "ALTER DATABASE DatabaseName SET HADR AVAILBILLITY GROUP" command for each availability database and secondary replica that is defined in the availability group. For example, you add the following steps:

-- On the server instance that hosts the secondary replica, 

-- join each secondary database to the availability group:

:Connect <<secondary replica 1>>

ALTER DATABASE MyDb1 SET HADR AVAILABILITY GROUP = MyAG;

GO

ALTER DATABASE MyDb2 SET HADR AVAILABILITY GROUP = MyAG;

GO

:Connect <<secondary replica 2>>

ALTER DATABASE MyDb1 SET HADR AVAILABILITY GROUP = MyAG;

GO

ALTER DATABASE MyDb2 SET HADR AVAILABILITY GROUP = MyAG;

GO

More Information

For more information about how to join a secondary database to an availability group, go to the following MSDN website:

How to join a secondary database to an availability groupFor more information about how to use the New Availability Group Wizard, go to the following MSDN website:

How to use the New Availability Group WizardFor more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Bạn cần thêm trợ giúp?

Bạn muốn xem các tùy chọn khác?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Thông tin này có hữu ích không?

Điều gì ảnh hưởng đến trải nghiệm của bạn?
Khi nhấn gửi, phản hồi của bạn sẽ được sử dụng để cải thiện các sản phẩm và dịch vụ của Microsoft. Người quản trị CNTT của bạn sẽ có thể thu thập dữ liệu này. Điều khoản về quyền riêng tư.

Cảm ơn phản hồi của bạn!

×