Created
October 14, 2011 06:38
-
-
Save florianbeisel/1286411 to your computer and use it in GitHub Desktop.
UI Properties erstellen und SnapshotFolder hinzufügen
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
USE [Distrib-PLZ74] | |
GO | |
IF NOT EXISTS (SELECT * FROM sysobjects WHERE name = 'UIProperties' AND type = 'U ') | |
CREATE TABLE UIProperties(id INT) | |
IF EXISTS (SELECT * FROM ::fn_listextendedproperty('SnapshotFolder', 'user','dbo', 'table', 'UIProperties', null, null)) | |
EXEC sp_updateextendedproperty | |
N'SnapshotFolder', | |
N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\ReplData', | |
'user', | |
dbo, | |
'table', | |
'UIProperties' | |
ELSE | |
EXEC sp_addextendedproperty | |
N'SnapshotFolder', | |
N'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\ReplData', | |
'user', | |
dbo, | |
'table', | |
'UIProperties' | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment