Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2003, 11:34 AM
Authorized User
 
Join Date: Jul 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Open Error 2580

(Access Project frontend, SQL Server 2000 backend)
I have come across error 2580 when trying to open a report bound to a stored procedure. I've noticed that the stored procedures that are run through code work fine but those bound to reports caused problems.
Anyone with administrative access does not run into this problem. I've tried Running the Stored Procedure from within Access and it works, just doesn't seem to find it in Reports and Forms, unless run from code. Any help would be appreciated



 
Old September 10th, 2003, 12:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use Access (.mdb) along with SQL Server stored procedures. In order for Access to see the sp I have to use a pass through query. This may not be necessary with an Access Data Project but it's worth a try.

The pass-through query works as follows:
Code:
EXEC {the name of the sp} {parameter1}, {parameter2}, etc.
Code:
EXEC usp_MyStoredProcedure 'John', 'Smith', 'Chicago'
This assumes your parameters are FirstName, LastName and City.

The pass-through query MUST be specifically pointed to the correct Server and Database with the connect string.

ODBC Connect String:
Code:
ODBC;DRIVER={SQL Server};SERVER=TheNameOfYourServer;Database=TheNameOfYourSQLDatabase;Trusted_Connection= Yes


Rand
 
Old September 10th, 2003, 02:06 PM
Authorized User
 
Join Date: Jul 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why would it then work for Administrators without using a passthru query? It only happens with users set as dbo.
 
Old September 15th, 2003, 11:16 AM
Authorized User
 
Join Date: Jul 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Found what I was looking for at this link:
http://support.microsoft.com:80/supp...NoWebContent=1
(Administrators had the patch installed)





Similar Threads
Thread Thread Starter Forum Replies Last Post
recordset open error MMJiggy62 Beginning VB 6 2 September 4th, 2006 04:52 PM
Error when open workbook gastoncs Excel VBA 2 December 21st, 2005 12:43 PM
err 2580 - data source not found DavidCC SQL Server 2000 4 April 1st, 2004 03:19 PM
"There is already an open DataReader " error kaz VS.NET 2002/2003 4 December 17th, 2003 11:43 PM
error trying to open a database Boomer ASP.NET 1.0 and 1.1 Basics 2 June 22nd, 2003 01:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.