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.0 KiB

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