IF NOT EXISTS (SELECT 1 FROM [sys].[columns] WHERE [object_id] = OBJECT_ID(N'[dbo].[ConnectionLog]') AND [name] = N'Details')
    ALTER TABLE [dbo].[ConnectionLog] ADD [Details] NVARCHAR(256) NULL, [DetailsID] UNIQUEIDENTIFIER NULL;