EXEC sp_configure allow update, 1 GO reconfigure with override GO BEGIN IF EXISTS (SELECT * FROM SysColumns WHERE SysColumns.id = Object_ID'acM_OpeningLedger') AND colstat = 1) UPDATE SysColumns SET colstat = 0 WHERE SysColumns.id = Object_ID('acM_OpeningLedger') AND colstat = 1 ELSE UPDATE SysColumns SET colstat = 1 WHERE SysColumns.id = Object_ID('acM_OpeningLedger') AND SysColumns.name = 'RowID' END GO EXEC sp_configure allow update, 0 GO reconfigure with override GO
Update
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)