Created
February 22, 2022 08:37
-
-
Save UstDoesTech/0d3164c974d898be6773b8210b4145ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE PROCEDURE Operation.CreateSchema | |
( | |
@SchemaName NVARCHAR(300) | |
) | |
AS | |
IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = @SchemaName) | |
DECLARE @CreateStatement NVARCHAR(MAX) = 'CREATE SCHEMA ' + @SchemaName | |
PRINT (@CreateStatement) | |
EXEC sp_executesql @CreateStatement |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment