Will192
03-18-2003, 12:08 PM
I am running Javascript with ASP connecting to SQL Server 2000 on Windows 2000 Server. Here is the text that I am sending to SQL Server :
SELECT MIN(SLOTSAVAILABLE-SLOTSFULL) AS SLOTSOPEN, MIN(SLOTSAVAILABLE) AS SLOTSAVAILABLE FROM VPOFFICE WHERE OFFICECODE = 'STLX' AND DATEPART(YY,VACATIONDAY)=2003 AND DATEPART(MM,VACATIONDAY)=4 AND DATEPART(DD,VACATIONDAY)=9
I have printed the oRS.Source right before I oRS.Open, so I know that this is the sql that is sent to the server.
Here is the error that I get in the IE window when it hits the oRS.Open statement :
Invalid column name 'NaN'
What the hell is going on here? I have tried to change around the sql, but I still get an error. The statement runs fine in Query Analyzer. HELP!
Will192
(Thanks in advance for any responses to this post)
SELECT MIN(SLOTSAVAILABLE-SLOTSFULL) AS SLOTSOPEN, MIN(SLOTSAVAILABLE) AS SLOTSAVAILABLE FROM VPOFFICE WHERE OFFICECODE = 'STLX' AND DATEPART(YY,VACATIONDAY)=2003 AND DATEPART(MM,VACATIONDAY)=4 AND DATEPART(DD,VACATIONDAY)=9
I have printed the oRS.Source right before I oRS.Open, so I know that this is the sql that is sent to the server.
Here is the error that I get in the IE window when it hits the oRS.Open statement :
Invalid column name 'NaN'
What the hell is going on here? I have tried to change around the sql, but I still get an error. The statement runs fine in Query Analyzer. HELP!
Will192
(Thanks in advance for any responses to this post)