Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SELECT permission denied on object

Posted on 2006-06-16
5
830 Views
Last Modified: 2008-01-09
Hi, i have an ASP application that i am using against an SQL Server 2000 box.  This application worked fine on access but when upsized to SQL2000 i now have the following error...


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

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

/process.asp, line 54

*****************
Line 52: Set RS = Server.CreateObject("ADODB.Recordset")
Line 53: SQL = "SELECT * FROM tblAnalytics WHERE ID = 0"
Line 54: RS.Open SQL,Connection,3,3

I have gone into SQL server and put permissions on everything i can find in that DB for the account that i have set up.....

Still not working,

Any Ideas?

Thanks

0
Comment
Question by:net-workx
  • 3
  • 2
5 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 16924782
You need to give the user in your connection SELECT permissions on the tblAnalytics table.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 16924787
Also, the following question is now conisdered abandoned, please attend to it:
http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21845686.html

Thanks.
0
 

Author Comment

by:net-workx
ID: 16924846
i have done this already...


Right click on table > properties > permissions > the user Live_XXXX has ticks in SELECT, INSERT, UPDATE, DELETE, DRI

But it still does not work!

As regards the open question, it is still valid, i will update this tommorow.

Carl
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 16925082
>>But it still does not work!<<
Than that is not the correct user or you are missing something.  There is I am afraid no other way around it.

>>i will update this tommorow.<<
Please do.
0
 

Author Comment

by:net-workx
ID: 16926417
Obviously made a mistake....

I created a new user and set the permissions on the table again then modified the connection string and it is all ok now!

Thanks,
Carl
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes some very basic things about SQL Server filegroups.
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question