Created
July 15, 2015 18:30
-
-
Save swaters86/e67c056e38cac64e2e4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Logically delete the report */ | |
UPDATE ChangeGear.dbo.CG_ReportEntity | |
SET GCRecord = 12345 | |
WHERE NAME = 'New Pie Chart' | |
/* Check the GCRecord field for the report record*/ | |
/* If it's null, then that means it's not deleted */ | |
/* If it's a numeric value, then that mean it is deleted */ | |
SELECT GCRecord | |
FROM ChangeGear.dbo.CG_ReportEntity (nolock) | |
WHERE NAME = 'New Pie Chart' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment