Solved

SELECT permission denied on object

Posted on 2006-06-16
5
833 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
[X]
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
  • 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

726 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