经典asp中找不到文件错误

时间:2012-05-10 10:11:10

标签: sql-server-2008 file asp-classic query-string

我使用查询字符串将信息(sql查询)从一个页面发送到另一个页面。在第二页中,它从一个页面下载基于SQL的Excel工作表。

它显示以下SQL的"FILE NOT FOUND ERROR"。请告诉我哪里有错误。

Select
    REPLACE(comments,'<BR>','') as Comments,
    DueDate,
    reviewdate,
    technote,
    confidential,
    effort,
    defect,
    SUBSTRING(comments,CHARINDEX(':',comments)+1,CHARINDEX('Client',comments)-CHARINDEX(':',comments)-1) as IssueDate,
    SUBSTRING(comments,CHARINDEX('Deliverable',comments)+13,CHARINDEX('Description',comments)-CHARINDEX('Deliverable',comments)-13) as Deliverable,
    benefit as ClientImpact,
    RootCause,
    CorrectiveAction,
    Preventativeaction,
    RootCauseCategory as RootCauseCat,
    RootCauseType,
    stage,
    Case Priority
        WHEN 'N' Then 'Normal'
        WHEN 'H' then 'High'
        WHEN 'V' Then 'Very High'
        ELSE ' '
    END as Priority,
    OSAreason
from esinet_dbo.Helpdesk1
WHERE (Status <> 'Complete' AND Status <> 'Closed' AND Status <> 'Canceled')
AND (DateInitiated >='1/1/2000' And DateInitiated <='5/11/2012')
AND mailbox = 'HelpDeskQA'
AND (DateInitiated >= '1/01/2000' and DateInitiated <= '5/10/2012 23:59:59.99')

当我直接在sqlserver上运行这个SQL时,它工作正常。

在Substring中我的错误在哪里?

0 个答案:

没有答案