日期:2014-05-18  浏览次数:20523 次

谁帮忙解释下出现这个错误的原因!
还有该怎么解决!


Server Error in '/ERPWEB' Application.
--------------------------------------------

无法从SQL取得任何数据!在关键字 'from' 附近有语法错误。
在关键字 'from' 附近有语法错误。
游标未声明。
sp_cursorfetch: 所提供的游标标识符值(0)无效。
sp_cursorclose: 所提供的游标标识符值(0)无效。 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Exception: 无法从SQL取得任何数据!在关键字 'from' 附近有语法错误。
在关键字 'from' 附近有语法错误。
游标未声明。
sp_cursorfetch: 所提供的游标标识符值(0)无效。
sp_cursorclose: 所提供的游标标识符值(0)无效。

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[Exception: 无法从SQL取得任何数据!在关键字 'from' 附近有语法错误。
在关键字 'from' 附近有语法错误。
游标未声明。
sp_cursorfetch: 所提供的游标标识符值(0)无效。
sp_cursorclose: 所提供的游标标识符值(0)无效。]
  Sunlike.Web.UI.WebControls.Navigation.DataGridBinding() +3066
  Sunlike.Web.UI.WebControls.Navigation.CreateChildControls() +471
  System.Web.UI.Control.EnsureChildControls() +87
  System.Web.UI.Control.PreRenderRecursiveInternal() +41
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360

 


--------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

------解决方案--------------------
存储,代码什么都没有,你当人都是神啊。。。
报错字面意思,游标有问题。