> > I have a test SP on sql server 2000 running on Win2003 server.
> > Workstations are all XP SP2. On some workstations, MSAccess can run the
[quoted text clipped - 14 lines]
>
> How does the code in Access that calls the procedure look like?
> The Access program can invoke several other stored procedures. This
> procedure is the recordsource for a report. It runs fine on a few
> workstations, but the error message on the other workstations says:
>
> the Test_SP for the recordsource of this form or report cannot be found.
That seems to be an error message from Access.
> Then in the database window (In Access) for stored procedures I can see
> Test_SP, but it is followed by a semicolon and a 1 on this particular
[quoted text clipped - 3 lines]
> Test_SP cannot be found. But I am looking right at it (in an Access
> ADP).
If you try it Query Analyzer, you will find that
EXEC Test_SP
EXEC Test_SP;1
yield the same result. The ;1 is part of a quite obscure feature in
SQL Server: versioned stored procedures. That is, you can create Test_SP;2,
Test_SP;3 etc. I think the only point with it is that you can drop
them all in one bang with "DROP PROCEDURE Test_SP".
> It must be a configuration issue/security issue with either the account
> or workstation. The connection is fine. In Access in the Connection
> window there is a test button to test the connection. That works fine.
> What could this problem be?
This seems to be a problem on the Access side, and I don't know Access,
so I cannot really say. But I can't see that security has anything to
do with it. Configuration in Access? Maybe. But my gut feeling is that is
a bug in Access, and my guess is that the troublesome workstations have
a different version of Access than the others. That, or of some
component that Access uses to get the information.

Signature
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Rich - 21 Mar 2008 16:08 GMT
thank you for the explanation about TestSP;1... That makes sense now.
And I agree that it is probably a bug with Access about how it deals with
connections/procedures...
I am in the process of migrating everything to a .Net platform anyway. In
the meantime, the place where I am at has some MS Access apps in place that I
have to support. Oh well, I will have to keep experimenting.
> > The Access program can invoke several other stored procedures. This
> > procedure is the recordsource for a report. It runs fine on a few
[quoted text clipped - 33 lines]
> a different version of Access than the others. That, or of some
> component that Access uses to get the information.
Rich - 21 Mar 2008 18:59 GMT
I just discovered that the workstations with the problems are using the
deployed version of Access and do not have the Access application installed.
The fix is to install the full Access application on these machines.
> thank you for the explanation about TestSP;1... That makes sense now.
>
[quoted text clipped - 42 lines]
> > a different version of Access than the others. That, or of some
> > component that Access uses to get the information.