Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 10th, 2003, 11:34 AM
Authorized User
 
Join Date: Jul 2003
Location: , , Canada.
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



Reply With Quote
  #2 (permalink)  
Old September 10th, 2003, 12:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Naperville, IL, USA.
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
Reply With Quote
  #3 (permalink)  
Old September 10th, 2003, 02:06 PM
Authorized User
 
Join Date: Jul 2003
Location: , , Canada.
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.
Reply With Quote
  #4 (permalink)  
Old September 15th, 2003, 11:16 AM
Authorized User
 
Join Date: Jul 2003
Location: , , Canada.
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)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:51 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.