EnVisageOnline/Main-RMO/Database/Scripts/20140624/02_Scenario_UpdateColumns.sql

16 lines
384 B
Transact-SQL

use envisage
go
begin tran
if exists (select * from sys.all_columns where name like 'CreatorId' and object_id like OBJECT_ID('[Scenario]'))
begin
ALTER TABLE [Scenario] DROP COLUMN CreatorId
end
if exists (select * from sys.all_columns where name like 'ModifiedById' and object_id like OBJECT_ID('[Scenario]'))
begin
ALTER TABLE [Scenario] DROP COLUMN ModifiedById
end
commit tran