Solved

SELECT permission denied on object

Posted on 2006-06-16
5
820 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
Comment Utility
You need to give the user in your connection SELECT permissions on the tblAnalytics table.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
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
Comment Utility
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
Comment Utility
>>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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now