// ReportCountDaily.h : Declaration of the CReportCountDaily /************************************************************************************* * module: ReportCountDaily.h - OLEDB Template * * author: Tim Ragain * date: Jan 2, 2002 * * Purpose: to return the incident count for a specific date by calling the * stored procedure ReportCountDaily. * *************************************************************************************/ #pragma once // code generated on Thursday, December 27, 2001, 12:25 PM //Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=Tim5;User ID=Tim5;Initial Catalog=KaCustomer;Data Source=TIMRAGAIN04\\TIMRAGAIN04 #include "Settings.h" [ #if(lDatabase == 0) db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=ocarp;User ID=ocarp;Initial Catalog=KaCustomer2;Data Source=OCATOOLSDB"), #elif(lDatabase == 1) db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=Tim5;User ID=Tim5;Initial Catalog=KaCustomer;Data Source=TIMRAGAIN04\\TIMRAGAIN04"), #elif(lDatabase == 2) db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=Tim5;User ID=Tim5;Initial Catalog=KaCustomer;Data Source=TIMRAGAIN05"), #elif(lDatabase == 3) db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=Tim5;User ID=Tim5;Initial Catalog=KaCustomer;Data Source=Homebase"), #elif(lDatabase == 4) db_source(L"Provider=SQLOLEDB.1;Persist Security Info=False;Pwd=ocarpts@2;User ID=ocarpts;Initial Catalog=KaCustomer2;Data Source=tkwucdsqla02"), #endif db_command(L"{ ? = CALL dbo.ReportCountDaily(?) }") ] class CReportCountDaily { public: [ db_column(1, status=m_dwIncidentIDStatus, length=m_dwIncidentIDLength) ] LONG m_IncidentID; DBSTATUS m_dwIncidentIDStatus; DBLENGTH m_dwIncidentIDLength; [ db_param(1, DBPARAMIO_OUTPUT) ] LONG m_RETURN_VALUE; [ db_param(2, DBPARAMIO_INPUT) ] DBTIMESTAMP m_ReportDate; void GetRowsetProperties(CDBPropSet* pPropSet) { VARIANT vCT; vCT.lVal = 600; pPropSet->AddProperty(DBPROP_CANFETCHBACKWARDS, true, DBPROPOPTIONS_OPTIONAL); pPropSet->AddProperty(DBPROP_CANSCROLLBACKWARDS, true, DBPROPOPTIONS_OPTIONAL); pPropSet->AddProperty(DBPROP_COMMANDTIMEOUT, vCT); } }; // code generated on Thursday, December 27, 2001, 12:25 PM