訓練
認證
Microsoft Certified: Azure Database Administrator Associate - Certifications
使用 Microsoft PaaS 關聯式資料庫供應項目管理用於雲端、內部部署和混合關聯式資料庫的 SQL Server 資料庫基礎結構。
適用於:SQL Server
Azure SQL 資料庫
Azure SQL 受控執行個體
Azure Synapse Analytics
Analytics Platform System (PDW)
本主題說明如何使用 Transact-SQL 建立 SQL Server 中的資料庫主要金鑰。
需要資料庫的 CONTROL 權限。
選擇密碼以加密即將儲存於資料庫的主要金鑰副本。
在物件總管中,連接到一個資料庫引擎實例。
展開 [系統資料庫],以滑鼠右鍵按一下 ,然後按一下 [新增查詢]。
複製下列範例並將其貼到查詢視窗中,然後按一下 [執行] 。
-- Creates the master key.
-- The key is encrypted using the password "23987hxJ#KL95234nl0zBe".
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '23987hxJ#KL95234nl0zBe';
如需詳細資訊,請參閱 CREATE MASTER KEY (Transact-SQL)。
訓練
認證
Microsoft Certified: Azure Database Administrator Associate - Certifications
使用 Microsoft PaaS 關聯式資料庫供應項目管理用於雲端、內部部署和混合關聯式資料庫的 SQL Server 資料庫基礎結構。