Skip to content

Instantly share code, notes, and snippets.

@florianbeisel
Created October 14, 2011 06:38
Show Gist options
  • Save florianbeisel/1286411 to your computer and use it in GitHub Desktop.
Save florianbeisel/1286411 to your computer and use it in GitHub Desktop.
UI Properties erstellen und SnapshotFolder hinzufügen
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