Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

這個累積更新新增了一種裝置類型的URL,以從備份初始化事務性複製的功能。 若要使用這項功能,您必須在 [Azure 儲存空間] 中指定 [url @backupdevicetype ],以在您調用sp_addsubscription時,為@backupdevicename參數指定 Azure 儲存體中的備份檔案位置。

狀態

Microsoft 已確認<適用於>一節所列的 Microsoft 產品確實有上述問題。

解決方案

此問題已在下列 SQL Server 累積更新中修正:

關於 SQL Server 的累積更新:

每個新的 SQL Server 累計更新都包含所有的修正程式,以及前一個累積更新中所包含的所有安全性修正程式。 查看 SQL Server 的最新累計更新:

注意: 此修復程式功能可讓您在內部部署與 Azure SQL 資料庫之間設定事務性複製,並使用 @sync_type = N'initialize 與 backup」。

範例

備份資料庫 <Published_DB> 到 url = "backup_file_namePath"

將資料庫還原到訂閱者:

如果存在(從 name = 'storage_account_name」的身分認證選取 [*]) 

DROP CREDENTIAL [containerPath

--儲存空間帳戶名稱可以在 Azure 入口網站上的下列位置找到: Storage-> 設定-> 便捷鍵

--可在下列專案產生共用存取簽章金鑰: Storage > 設定-> 共用評估簽章

建立認證 [containerPath

使用身分識別 = 「共用存取簽章」,機密 = ' <shared_access_signature_key_with_removed_first_? _symbol> " 

從 URL [backup_file_namePath"還原資料庫 [<database_name>] 

若要在發佈伺服器上建立訂閱,請使用「使用備份程式初始化」同步處理類型並指定本機備份檔案:

exec sp_addsubscription @publication = N "test_init_backup",@subscriber = N "sub_server_name", 

@destination_db = N "destination_db_name",請 @sync_type = N'initialize with backup ",

@backupdevicetype='URL',@backupdevicename='backup_file_namePath'

 

如需詳細資訊,請參閱  從備份初始化事務性訂閱

參考

了解 Microsoft 用來說明軟體更新的術語

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×