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!

SQL 2000 Enterprise manager Web Assistant Wizard

Status
Not open for further replies.

wfd1bdb

MIS
Jun 21, 2006
25
0
0
US
I am trying to use the Web Assistant Wizard to run the script below and it is failing. it doesn't seem to like the (parentheses) or [brackets] or datediff. so I am not sure what to do. Any insight working with Web Assistant Wizard would be appreciated.

wfd1bdb

SELECT SSNO as AccountNo, VARTXT as DateOffered, PROV as Provider, convert(varchar(10), reported, 101)
as CallReceived, datediff(dy,reported,vartxt) as DaysBetween

FROM DICTIONARY
WHERE ([SCTION] = 'Cenntk') AND (VARCODE IN ('ofrdapt'))
AND (COMPANY = 'mn')and reported between '01-01-2007' and '02-01-2007' and
datediff(dy,reported,vartxt) > -1
ORDER BY SSNO, vartxt, REPORTED
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top