mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
11 lines
317 B
Transact-SQL
11 lines
317 B
Transact-SQL
-- =====================================
|
|
-- Change owning principal template
|
|
-- =====================================
|
|
USE [master]
|
|
GO
|
|
|
|
-- Alter the server principal that owns the server role
|
|
ALTER AUTHORIZATION ON SERVER ROLE :: [<server_role_name, sysname, Server_Role_Name>]
|
|
TO [<server_principal, sysname, sa>]
|
|
GO
|