Re: Select permission denied on object [tablename] database

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 09/21/04


Date: Tue, 21 Sep 2004 08:47:03 -0400

Reshma,

    Is this an ASP.NET process? If it is, then you might not have the
appropriate permissions (by default, it uses the ASPNET local user). If
your SQL server is running in Windows Authentication mode, it might not be
set up for this user.

    Hope this helps.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"Reshma Prabhu" <ReshmaPrabhu@discussions.microsoft.com> wrote in message 
news:A72AA9F0-ED9B-4BC1-8F4C-FDE3FA74AB54@microsoft.com...
> Hello,
>
>            I am getting following exception while trying to execute a
> SELECT query on a table even though it has all the SELECT rights. The
> SQLServer is running on local machine. The server running under windows
> authentication.
>
> Exception---
> Select permission denied on object [tablename] database [databasename]
> owner='dbo'
>
> The connection is getting opened but it is throwing the exception in
> myCommand.ExecuteReader() statement in the following code.
>
> conn.Open();
> SqlDataReader reader = myCommand.ExecuteReader();
> conn.Close();
>
> Can anybody please help me out to solve this problem.
>
> Thanks,
> Reshma 


Relevant Pages

  • Re: Select permission denied on object [tablename] database
    ... it uses the ASPNET local user). ... > your SQL server is running in Windows Authentication mode, ... >> The connection is getting opened but it is throwing the exception in ...
    (microsoft.public.dotnet.languages.csharp)
  • Connecting to linked SQL table in Access
    ... authentication is set to "SQL Server and Windows Authentication mode". ... Dim tDef As TableDef ... link to the table with full permissions. ...
    (microsoft.public.sqlserver.security)
  • ADP, Application Role, and objects
    ... The above link is to an atricle on how to implement SQL Server Application ... After you connect with your ADP, fire a bit of code to set the ... third party tools to view the data on the same database. ... Scenario 1 - If I explicitly grant permissions on that object to the user ...
    (microsoft.public.access.adp.sqlserver)
  • Re: field level security question
    ... Vyas, MVP ... listBox control that gets data from a query of the sql server table. ... > recent change in requirement) I see the option to limit permissions right ... > utility opens except their is just no data. ...
    (microsoft.public.sqlserver.security)
  • Re: Deny access to all users (including Administrator and DomainAd
    ... permissions on stored procedure override ... applictaion's user account permissions to the stored procedure which will ... Will try to deny access through the query for SQL Server 2005 and 2000. ... Remove everyone that you don't want rom an Administrator Groups ...
    (microsoft.public.sqlserver.security)