if exists (select * FROM sys.syscolumns where name = 'Category' AND id = object_id(N'dbo.ConnectionHistory'))
   alter table dbo.ConnectionHistory drop column Category, Department, DataSourceID, DescriptionRTF;