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.

64 lines
981 B

  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE PROCEDURE sp_GetProblems
  6. @ip_BucketTypes int
  7. AS
  8. BEGIN
  9. -- BucketType = 0 : List all
  10. IF (@ip_BucketTypes = 0)
  11. BEGIN
  12. select * from bucketcounts
  13. order by Instances DESC
  14. END
  15. -- BucketType = 1 : List unresolved, unraided
  16. IF (@ip_BucketTypes = 1)
  17. BEGIN
  18. select * from bucketcounts
  19. where ISNULL(bugid, 0) = 0 AND ISNULL(solvedate, '1/1/1900') = '1/1/1900'
  20. order by Instances DESC
  21. END
  22. -- BucketType = 2 : List raided buckets
  23. IF (@ip_BucketTypes = 2)
  24. BEGIN
  25. select * from bucketcounts
  26. where ISNULL(bugid, 0)<>0
  27. order by Instances DESC
  28. END
  29. -- BucketType = 3 : List solved buckets
  30. IF (@ip_BucketTypes = 3)
  31. BEGIN
  32. select * from bucketcounts
  33. where ISNULL(solvedate, '1/1/1900')<>'1/1/1900'
  34. order by Instances DESC
  35. END
  36. END
  37. GO
  38. SET QUOTED_IDENTIFIER OFF
  39. GO
  40. SET ANSI_NULLS ON
  41. GO