简体   繁体   English

使用来自MS Access 2000的SQL-Server2005 SPROC的奇怪错误:名称中的“; 1”->找不到

[英]weird error using SQL-Server2005 SPROCs from MS Access 2000: “;1” in name --> not found

I have a weird problem here. 我这里有一个奇怪的问题。

In short to the environment we have: 简而言之,我们有:

There is a (newly set up) Win2003 Server with a SQL Server 2005 Express database. 有一个(新设置的)带有SQL Server 2005 Express数据库的Win2003 Server。 I connect to it via a MS Access application. 我通过MS Access应用程序连接到它。

Since I switched to the new server (restored a backup from the former server on it) all SPROCs (only in Access) have a ;1 after their name, hence cannot be found. 由于我切换到新服务器(从其上的先前服务器还原了备份),所有SPROC(仅在Access中)的名称后都有; 1,因此找不到。

If I try to open a SPROC in Access (dbl click in overview), it asks for the parameter, then says cannot be found. 如果我尝试在Access中打开SPROC(在概述中单击dbl),它将要求输入参数,然后提示找不到。 If I try to open, say, a report based on it, same result. 如果我尝试打开基于它的报告,则结果相同。 If I change the name of the SPROC the report is based on to the name shown in the overview ( [sprocnam];1 ) it says "cannot be found" (of course, because the names did not change as one can see in Management Studio). 如果我更改SPROC的名称,报告将基于概述中显示的名称([sprocnam]; 1),它说“找不到”(当然,因为名称没有更改,就像在“管理”中看到的那样)工作室)。

?!? ?!?

keep in mind that the Access-application worked fine with the database that I backed up on another server and restored to the newly set up server ... 请记住,Access应用程序与我在另一台服务器上备份并还原到新设置的服务器上的数据库配合良好。

Your help is greatly appreciated! 非常感谢您的帮助!

edit: I found a thread on SAP.com with someone experiencing the same problem, but without a solution: https://forums.sdn.sap.com/message.jspa?messageID=7947957 编辑:我在SAP.com上发现了一个遇到相同问题但没有解决方案的线程: https : //forums.sdn.sap.com/message.jspa?messageID=7947957

I can't tell why you have got this issue, but in In SQL Server you have the ability to create Numbered stored procedures. 我不知道为什么会出现此问题,但是在SQL Server中,您可以创建Numbered存储过程。 The procedures have the same name but may contain completely different code, look at this: 这些过程具有相同的名称,但可能包含完全不同的代码,请看以下内容:

CREATE PROCEDURE [dbo].[spTest] 
AS
BEGIN
    SELECT @@MICROSOFTVERSION
END

GO

CREATE PROCEDURE [dbo].[spTest];2
AS
SELECT @@version

GO

EXEC spTest;1
EXEC spTest;2

I resolved the issue with an update of the clients office -installation to the latest service pack. 我通过将客户办公室的安装更新到最新的Service Pack解决了该问题。

The one employee that notified me of the problem and me got new computers last week, and thus did not have the latest updates. 一位通知我该问题的员工,上周我得到了新计算机,因此没有最新更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM