“/”应用程序中的服务器错误。

'=' 附近有语法错误。
'=' 附近有语法错误。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.OleDb.OleDbException: '=' 附近有语法错误。
'=' 附近有语法错误。

源错误:


行 33:         Dim conn1 As New data_conn
行 34:         da1 = conn1.mdb_da(sql)
行 35:         da1.Fill(ds1, table)
行 36:         Return ds1
行 37:     End Function

源文件: D:\Web\allin\App_Code\VB_Code\data_conn.vb    行: 35

堆栈跟踪:


[OleDbException (0x80040e14): '=' 附近有语法错误。
'=' 附近有语法错误。]
   System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr) +61
   System.Data.OleDb.OleDbDataReader.NextResult() +629
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +361
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +144
   System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +9
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +221
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +573
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +161
   data_conn.mdb_ds(String sql, String table) in D:\Web\allin\App_Code\VB_Code\data_conn.vb:35
   search_company.LoadRecord(String page) in D:\Web\allin\search\company.aspx.vb:717
   search_company.Page_Load(Object sender, EventArgs e) in D:\Web\allin\search\company.aspx.vb:188
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


版本信息: Microsoft .NET Framework 版本:2.0.50727.8806; ASP.NET 版本:2.0.50727.8762