mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
15 lines
297 B
Transact-SQL
15 lines
297 B
Transact-SQL
-- =====================
|
|
-- Drop Role template
|
|
-- =====================
|
|
|
|
USE <database_name, sysname, AdventureWorks>;
|
|
GO
|
|
|
|
-- Create the database role
|
|
CREATE ROLE <role_name, sysname, Production_Owner> AUTHORIZATION [dbo];
|
|
GO
|
|
|
|
-- Drop the role
|
|
DROP ROLE <role_name, sysname, Production_Owner>;
|
|
GO
|