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
56 lines
2.0 KiB
// ReportGetAutoUploads.h : Declaration of the CReportAnonUsers
|
|
/*************************************************************************************
|
|
* module: ReportGetAutoUploads.h - OLEDB Template
|
|
*
|
|
* author: Tim Ragain
|
|
* date: Jan 2, 2002
|
|
*
|
|
* Purpose: To return the count for auto uploads for a specific date. Uses stored
|
|
* procedure ReportGetAutoUploads
|
|
*
|
|
*************************************************************************************/
|
|
#pragma once
|
|
#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.ReportGetAutoUploads(?) }")
|
|
]
|
|
|
|
class CReportGetAutoUploads
|
|
{
|
|
public:
|
|
|
|
[ db_column(1, status=m_dwCountStatus, length=m_dwCountLength) ] LONG m_Count;
|
|
|
|
DBSTATUS m_dwCountStatus;
|
|
|
|
DBLENGTH m_dwCountLength;
|
|
|
|
[ 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);
|
|
}
|
|
|
|
};
|
|
|
|
|