Solved

SELECT permission denied on object

Posted on 2006-06-16
5
831 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ServiceCenter IR Query Expressions 1 51
T-SQL Default value in Select? 5 53
changing page verifacation 1 61
populate value based on what is selected in lov 2 35
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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…

733 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