Re: Select permission denied on object [tablename] database

From: Reshma Prabhu (ReshmaPrabhu_at_discussions.microsoft.com)
Date: 09/22/04


Date: Tue, 21 Sep 2004 20:49:03 -0700

Hello,
          I have created ASPNet local user and given him rights to fire
SELECT,Create,Delete on the tables but still it is not working.
          Is any thing else needs to be done?
Thanks,
Reshma

"Nicholas Paldino [.NET/C# MVP]" wrote:

> 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
    ... appropriate permissions (by default, it uses the ASPNET local user). ... your SQL server is running in Windows Authentication mode, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Expire passwords
    ... This will shield your SQL Server installation ... from most Internet-based attacks by restricting connections to Microsoft ... servers) is only available in Windows Authentication Mode. ... SQL Server Developer Support Engineer, MCDBA, MCSE, MCT ...
    (microsoft.public.sqlserver.security)
  • Re: Yukon and mixed mode for msde database?
    ... Michael Tissington ... > "We recommend using Windows Authentication mode when possible. ... Mixed mode is required when working with SQL Server 7.0. ...
    (microsoft.public.sqlserver.msde)
  • Re: User ID issue - urgent
    ... Is your SQL Server configured to only support Trusted Connections? ... SQL Server and Windows Authentication Mode ... I add the ID under the default security tab, ...
    (microsoft.public.sqlserver.security)