Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSP Query

Status
Not open for further replies.

dandcg

Programmer
Apr 4, 2003
5
0
0
GB
Hi,

I was wondering how to make a CSP query return report information based on SI_STARTIME....

SELECT SI_NAME, SI_ID, SI_PROGID,
SI_STARTTIME, SI_ENDTIME, SI_NEXTRUNTIME, SI_PARENTID,
SI_SCHEDULE_STATUS, SI_RECURRING, SI_OWNER, SI_ERROR_MESSAGE FROM CI_INFOOBJECTS WHERE
SI_INSTANCE = 1

I have tried the following additions and the don't work.

AND SI_STARTTIME>DATETIME(2004,11,18,0,0,0)
AND SI_STARTTIME>'18/11/2004 00:00:00'

The below would work in SQL.....

Can abody help...

Dan


 
oddly enough this allows me to either pull all records:
si_starttime > 12345672910
or no records:
si_starttime > 12345673910
(1000 greater)

so I am figuring this is some fancy numerical representation of the date; it may depend on your database as to how exactly such a figure is calculated. You are on sql server?
Someone with dba skills may be able to explain this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top