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.

54 lines
770 B

  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE PROCEDURE sp_NewIssuesToday
  6. AS
  7. BEGIN
  8. -- Display new crashes added today
  9. /* SELECT Followup,
  10. BucketMap.BucketId AS Bucket,
  11. COUNT (BucketMap.CrashId) AS Instances
  12. FROM CrashInstances, BucketMap, CrashBuckets
  13. WHERE DATEPART(dd,EntryDate) = DATEPART(dd,GETDATE()) AND
  14. DATEPART(mm,EntryDate) = DATEPART(mm,GETDATE()) AND
  15. DATEPART(yy,EntryDate) = DATEPART(yy,GETDATE()) AND
  16. BucketMap.CrashId = CrashInstances.CrashId AND
  17. CrashBuckets.BucketId = BucketMap.BucketId
  18. GROUP BY BucketMap.BucketId, Followup
  19. ORDER BY Instances DESC
  20. */
  21. EXEC sp_NewIssues 1
  22. END
  23. GO
  24. SET QUOTED_IDENTIFIER OFF
  25. GO
  26. SET ANSI_NULLS ON
  27. GO