为什么抛出错误的语法错误?

时间:2014-01-27 18:40:25

标签: vbscript

我正在使用的vb脚本在','附近的第43行抛出一条错误语法的消息。但我不明白为什么它会抛出这个信息。以下是抛出错误的代码:

Function getRS (sql)
      ' this loads the results of the sql statement into adoRecordset

      'response.write sql

      Set adoConnection = Server.CreateObject("ADODB.Connection")
      Set adoRecordset= Server.CreateObject("ADODB.Recordset")
      adoRecordset.CursorType = adOpenStatic
      adoConnection.Open connectString
      adoRecordset.Open sql, adoConnection

   End Function

这一行是第43行:adoRecordset.Open sql, adoConnection但为什么逗号会导致语法不正确?

0 个答案:

没有答案
相关问题