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.

58 lines
2.2 KiB

  1. // ReportCountDaily.h : Declaration of the CReportCountDaily
  2. /*************************************************************************************
  3. * module: ReportCountDaily.h - OLEDB Template
  4. *
  5. * author: Tim Ragain
  6. * date: Jan 2, 2002
  7. *
  8. * Purpose: to return the incident count for a specific date by calling the
  9. * stored procedure ReportCountDaily.
  10. *
  11. *************************************************************************************/
  12. #pragma once
  13. // code generated on Thursday, December 27, 2001, 12:25 PM
  14. //Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=Tim5;User ID=Tim5;Initial Catalog=KaCustomer;Data Source=TIMRAGAIN04\\TIMRAGAIN04
  15. #include "Settings.h"
  16. [
  17. #if(lDatabase == 0)
  18. db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=ocarp;User ID=ocarp;Initial Catalog=KaCustomer2;Data Source=OCATOOLSDB"),
  19. #elif(lDatabase == 1)
  20. db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=Tim5;User ID=Tim5;Initial Catalog=KaCustomer;Data Source=TIMRAGAIN04\\TIMRAGAIN04"),
  21. #elif(lDatabase == 2)
  22. db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=Tim5;User ID=Tim5;Initial Catalog=KaCustomer;Data Source=TIMRAGAIN05"),
  23. #elif(lDatabase == 3)
  24. db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=Tim5;User ID=Tim5;Initial Catalog=KaCustomer;Data Source=Homebase"),
  25. #elif(lDatabase == 4)
  26. db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=ocarpts@2;User ID=ocarpts;Initial Catalog=KaCustomer2;Data Source=tkwucdsqla02"),
  27. #endif
  28. db_command(L"{ ? = CALL dbo.ReportCountDaily(?) }")
  29. ]
  30. class CReportCountDaily
  31. {
  32. public:
  33. [ db_column(1, status=m_dwIncidentIDStatus, length=m_dwIncidentIDLength) ] LONG m_IncidentID;
  34. DBSTATUS m_dwIncidentIDStatus;
  35. DBLENGTH m_dwIncidentIDLength;
  36. [ db_param(1, DBPARAMIO_OUTPUT) ] LONG m_RETURN_VALUE;
  37. [ db_param(2, DBPARAMIO_INPUT) ] DBTIMESTAMP m_ReportDate;
  38. void GetRowsetProperties(CDBPropSet* pPropSet)
  39. {
  40. VARIANT vCT;
  41. vCT.lVal = 600;
  42. pPropSet->AddProperty(DBPROP_CANFETCHBACKWARDS, true, DBPROPOPTIONS_OPTIONAL);
  43. pPropSet->AddProperty(DBPROP_CANSCROLLBACKWARDS, true, DBPROPOPTIONS_OPTIONAL);
  44. pPropSet->AddProperty(DBPROP_COMMANDTIMEOUT, vCT);
  45. }
  46. };
  47. // code generated on Thursday, December 27, 2001, 12:25 PM