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.

56 lines
2.0 KiB

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