設定資料庫圖表設計器(Visual Database Tools)
適用於:SQL Server
Azure SQL Database
Azure SQL Managed Instance
Analytics Platform System (PDW)
若要使用資料庫關係圖設計工具,必須先由 db_owner 角色的成員設定,才能控制圖表的存取權。
設定資料庫關係圖
從 [物件總管] 中打開資料庫節點。
展開資料庫連接底下的 [資料庫關係圖] 節點。
如果您想要設定資料庫關係圖,請選取 [[是]。
注意
這會在 SQL Server 資料庫上建立資料庫關係圖數據表、系統預存程式和系統函式。
Visual Studio 會在 SQL Server 實例上建立下列物件:
sysdiagrams 數據表
sp_alterdiagram預存程式
sp_creatediagram預存程式
sp_dropdiagram預存程式
sp_renamediagram預存程式
fn_diagramobjects函式
sp_helpdiagrams預存程式
sp_helpdiagramsdefinition預存程式
sp_upgraddiagrams預存程式
另請參閱
瞭解資料庫關係圖擁有權 (Visual Database Tools)
從以前的版本升級資料庫圖表 (Visual Database Tools)
ALTER AUTHORIZATION (Transact-SQL)