Re: Trouble granting access to user in MSDE-2000

From: Narayana Vyas Kondreddi (answer_me_at_hotmail.com)
Date: 01/17/04


Date: Sat, 17 Jan 2004 22:31:11 -0000

Have you tried adding ASPNET login as a user in master database? Try that,
and then run this command in Query Analyzer (in master database).

GRANT EXEC ON sp_sdidebug TO ASPNET
GO

Now try your application, it should work.

-- 
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Anu" <anonymous@discussions.microsoft.com> wrote in message
news:016b01c3dcea$eb88b990$a001280a@phx.gbl...
Hi,
  I am trying to read data off a MSDE (downloaded from MS
website 2 weeks back)database and display it on a web-
form, using .NET. As any ASP.NET application  requires
access permission for user "ASPNET" on the database,
after 3 days of constant searching I hit upon the
sp_addlogin, sp_adduser stored procedures and was able to
add "ASPNET" as a valid user.
  Now, the application is able to open the connection to
the database,but dies when it tries to read data and the
error I get is:
"System.Data.SqlClient.SqlException: EXECUTE permission
denied on object 'sp_sdidebug', database 'master',
owner 'dbo'."
After more searching, I tried opening ControlPanel ->
Administrative... -> Services -> SQL Server ->
Properties -> LogOn , modified the user login to ASPNET,
and tried to restart the service, but the service would
not restart due to a failure to login.  By the way, the
OS I have is Windows-XP Pro.
I am learning to use .NET and I have already spent 4 days
on this issue due to lack of support. I would very much
appreciate help so that I can go forward with learning
the .NET environment further.
Thanks a bunch,
-Anu


Relevant Pages

  • Database Login Fail - Weird Problem
    ... "Cannot open database requested in login ... I have ASPNET setup as the user in IIS, identity impersonate is true in the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Cross database granting
    ... When I login as sa, ... > connection will default to the master database. ... > xp_cmdshell implicitly if called from a proc in the app database. ...
    (microsoft.public.sqlserver.programming)
  • Re: Security is TOO GOOD!
    ... > database that I created in MSDE. ... > panel and made ASPNET a member of the Administrators ... > Cannot open database requested in login 'MyDataBase'. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Security is TOO GOOD!
    ... ever ever put the aspnet into the admin group. ... > database that I created in MSDE. ... > panel and made ASPNET a member of the Administrators ... > Cannot open database requested in login 'MyDataBase'. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Cross database granting
    ... enable cross-database chaining for your user database: ... > When I login as sa, ... > Chris Buys ... >> connection will default to the master database. ...
    (microsoft.public.sqlserver.programming)