17 July, 2012
Roel van Lisdonk
0 Comments
1 category
If you want to create a schema in a Microsoft SQL Server database only when it does not exist, use:
declare @SchemaName nvarchar(128) set @SchemaName = 'Staging' if not exists(select top 1 1 from information_schema.schemata where schema_name = @SchemaName) begin exec('create schema ' + @SchemaName) end go
Tags: SQL Server
Category: Uncategorized
Related Posts
Solving Windows 7 can’t boot on Vertex 3 on a DELL XPS L702.x
5 May, 2011
Roel van Lisdonk
0 Comments
1 category
The BIOS of my Dell XPS L702.x was set to…
Links on Managed self-service BI – PowerPivot and Corporate BI
5 May, 2010
Roel van Lisdonk
0 Comments
1 category
Some useful links on Managed self-service BI – PowerPivot and…
Adjusting TFS 2012 Kanban board columns (count and titles) without changing the default process template statuses.
3 May, 2013
Roel van Lisdonk
0 Comments
1 category
The screencast below explains, how different teams can layout their…