Skip to content

Instantly share code, notes, and snippets.

@Novakov
Created October 31, 2012 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Novakov/3986054 to your computer and use it in GitHub Desktop.
Save Novakov/3986054 to your computer and use it in GitHub Desktop.
ALTER PROCEDURE [dbo].[sp_reset_e360]
AS
DELETE FROM [dbo].[Tokens];
DELETE FROM [dbo].[Answers];
DELETE FROM [dbo].[Responses];
DELETE FROM [dbo].[Requests];
DELETE FROM [dbo].[Feedbacks];
DELETE FROM [dbo].[Questions] FROM [dbo].[Questions] q INNER JOIN [dbo].[Questionnaires] qr ON q.QuestionnaireId = qr.Id WHERE qr.Title NOT LIKE '%**NO_DEL**%';
DELETE FROM [dbo].[Questionnaires] WHERE Title NOT LIKE '%**NO_DEL**%';
DELETE FROM [dbo].[TrustLevelSettings];
DELETE FROM [dbo].[AppraiseeAssigments];
DELETE FROM [dbo].[Appraisers];
DELETE FROM [dbo].[FeedbackInvitations];
DELETE FROM [events].[WinServiceQueue];
DELETE FROM [events].[EventLog];
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment