我有以下代码,我正在尝试生成一个 gif 文件以显示在我的 ASP.NET 网页中。
...
LogParser = New LogQueryClass()
W3Clog = New COMW3CInputContextClass()
Try
strSQL = "select quantize(time, 60) as TimeGenerated, count(*) as Hits " + _
" from d:\Logs\W3SVC1\*.log into abc.gif where to_lowercase(extract_extension(cs-uri-stem))='aspx' group by TimeGenerated"
Dim inputContext As New MSUtil.COMW3CInputContextClass()
Dim outputContext As New MSUtil.COMChartOutputContextClass()
outputContext.fileType = "gif"
outputContext.chartType = "Line"
Dim success As Boolean
success = LogParser.ExecuteBatch(strSQL, inputContext, outputContext)
但是我在 ExecuteBatch 方法中收到以下错误
Error parsing query: Syntax Error: extra token(s) after query: 'into' [SQL query syntax invalid or unsupported.]
问题是我不知道如何设置正确的输出上下文来生成 gif 文件。