我是用OLE DB provider 配制数据源的,数据库安装在另一台机,应用程序在我电脑上运行是没出现任何问题的,但拷到数据库那台机,数据源配制和我本机一样,运行时就提示下面的错,我用数据库那台机的OLE DB Provider数据源程序里提供的"Test Connect",测试结果是:"Test connect succeded.",但实际在数据库这台机运行怎么会提示找不到存储过程呢?Server Error in '/ReportsQuery' Application.
--------------------------------------------------------------------------------[Native Error code: 2812]
[DataDirect ADO Sybase Provider] Stored procedure 'TVMRevenueTotal' not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output). 
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.Data.OleDb.OleDbException: [Native Error code: 2812]
[DataDirect ADO Sybase Provider] Stored procedure 'TVMRevenueTotal' not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).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: 
[OleDbException (0x80004005): [Native Error code: 2812]
[DataDirect ADO Sybase Provider] Stored procedure 'TVMRevenueTotal' not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForMultpleResults(tagDBPARAMS dbParams, Object& executeResult) +161
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +160
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +48
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +111
   System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +4
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +86
   DBOperate.DBSelect(String sqlCommand, String[] paraNames, String[] paraValues) +187
   ReportAdapter.RptViewerData(ReportViewer reportViewer, String dataSourceName, String reportName, String sqlString, String[] paraName, String[] paraValue, String[] paraSqlName, String[] paraSqlValue) +147
   TVMRevenueTotal.Page_Load(Object sender, EventArgs e) +80
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 

解决方案 »

  1.   

    配置问题
    参考
    http://www.cnblogs.com/hide0511/archive/2006/09/05/495212.html
    http://www.cnblogs.com/javak/archive/2008/12/02/1345992.html
      

  2.   

    Specify owner.objectname 
    exp:
    dbo.TVMRevenueTotal
      

  3.   

    Stored procedure 'TVMRevenueTotal' not found
    ---------
    提示非常明显...两台机器上的数据库结构不一致或者用户权限分配不一致...出问题的缺少存储过程TVMRevenueTotal或者登录用户没有执行TVMRevenueTotal的权限...
      

  4.   


    WEB.CONFIG的连接字符串是这样的,不会有问题吧.<add name="ConnectionString" connectionString="Provider=Sybase.ASEOLEDBProvider.2;Data Source=lccreport;Initial Catalog=lccreport;Persist Security Info=True;Password=;User ID=sa"
       providerName="System.Data.OleDb" />
     
      

  5.   


    二台机用的都是同一台机上的sybase数据库啊,二台机都安装相同的客户端,其中sybase数据库那台机是和客户端安装在一起的.