Created
October 17, 2011 05:53
-
-
Save garethstokes/1292014 to your computer and use it in GitHub Desktop.
make this idompotent
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
alter table [catalog] add UseServerTime bit; | |
update [catalog] set [UseServerTime] = 0; | |
go; |
Seeing you two talking in SQL to each other is kind of amusing.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
USE db
IF EXISTS(select * from sys.all_columns ac inner join sys.tables t on ac.object_id = t.object_id where t.name = 'catalog' and ac.name = 'UseServerTime')
BEGIN
alter table [catalog] add UseServerTime bit;
update [catalog] set [UseServerTime] = 0;
END