Viewing post 1 (of 1 total)
USE [SampleDB]
IF ((SELECT COUNT(*) FROM sys.schemas WHERE name = N'sampleSchema') = 0)
BEGIN
exec('CREATE SCHEMA [sampleSchema] AUTHORIZATION [dbo]')
PRINT 'Schema Exists'
END
GO
- Serves our purpose
August 5, 2008 at 2:44 pm
#853502