16 lines
384 B
Transact-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 |