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 November 7th, 2003, 08:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default error '80040e09'

Hi there

I get this error message when I try to view a page on this site. Does anyone know how I can rectify this?

Microsoft OLE DB Provider for ODBC Drivers error '80040e09'

[Microsoft][ODBC SQL Server Driver][SQL Server]SELECT permission denied on object 'SystemDefaults', database 'bill_test', owner 'dbo'.

Many thanks

Adam
 
Old November 7th, 2003, 11:05 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You need to give select permissions on the necessary tables to the user you are using to run the query.

Hopefully one of the other folks here who is more familiar with database security can provide a more detailed answer and some suggestions.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old November 7th, 2003, 11:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

What's the query that returns this error?

 
Old November 7th, 2003, 11:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:Originally posted by planoie
 You need to give select permissions on the necessary tables to the user you are using to run the query.

Hopefully one of the other folks here who is more familiar with database security can provide a more detailed answer and some suggestions.
I don't think it's possible to give a much more detailed answer than the one you gave. The user running the query does not have sufficient privilege to access the object 'SystemDefaults' in the database 'bill_test'. The error message can't be any clearer. That user must be granted sufficient privilege to the object to access it.

The OP says he gets the error when "...I try to view a page ...". Just exactly who is "I" in this case? If access to the database is via anonymous access from a web server, then the IUSR_<server> user ID must have sufficient privilege to access the database, etc.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com
 
Old November 7th, 2003, 12:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

Thanks for your input guys. Unfortunately, I'm not the most fast witted sql programmer so I'm not sure how to set the permissions for the I_USER - I know that there are some properties on the table that set permissions but I've tried that and it still doesn't seem to want to work.

Any further comments greatly appreciated

thanks

Adam
 
Old November 7th, 2003, 12:32 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

Use Enterprise Manager. Select the database, then the Users node. Check to see if the appropriate user is listed as a user of the database. Add it if not. Right click the user, select Properties, then click the Permissions button and give the user the permissions you need.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
Microsoft JET Database Engine error '80040e09' phuc2583 Classic ASP Basics 1 February 28th, 2008 06:45 PM
error '80040e09' hastikeyvan SQL Server ASP 4 August 3rd, 2005 10:34 PM
error '80040e09' hastikeyvan SQL Server 2000 1 August 2nd, 2005 01:53 PM





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