Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
506 B

  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE PROCEDURE sp_EmptyBuckets
  6. @i_Remove int
  7. AS
  8. BEGIN
  9. IF @i_Remove = 1
  10. BEGIN
  11. DELETE FROM CrashBuckets
  12. WHERE BucketId NOT IN (SELECT DISTINCT(BucketId) FROM BucketMap)
  13. END
  14. SELECT Followup,
  15. BucketId AS Bucket
  16. FROM CrashBuckets
  17. WHERE BucketId NOT IN (SELECT DISTINCT(BucketId) FROM BucketMap)
  18. END
  19. GO
  20. SET QUOTED_IDENTIFIER OFF
  21. GO
  22. SET ANSI_NULLS ON
  23. GO