What is the user that is configured to access SQL Server?? Check whether this user can perform this operation. -- HTH, SriSamp Please reply to the whole group only!
> It occurs on a SQLDataAdapter.Fill instruction. I suspect it is an ASP.NET > debugging issue, but for all I know it could be an SQL Server issue.....
> Is there something I need to configure in SQL Server (2000) to enable apps > like ASP.NET to debug?
> What is the user that is configured to access SQL Server?? Check whether > this user can perform this operation. > -- > HTH, > SriSamp > Please reply to the whole group only!
There are no permissions granted on sp_sdidedebug by default, so you have to be a member of the System Administrators server role to be able to execute it, being dbo is not enough. You can grant permissions to other logins on sp_sdidedebug though.
> The user specified in the connection string is a dbo, and the page pulls the > data out correctly.
> It is when I try and run the page in debug mod that it complains about the > SQL permissions...
> "SriSamp" <ssamp...@sct.co.in> wrote in message > news:Om8xR$IGDHA.1976@TK2MSFTNGP12.phx.gbl... > > What is the user that is configured to access SQL Server?? Check whether > > this user can perform this operation. > > -- > > HTH, > > SriSamp > > Please reply to the whole group only!
Looks like the user you are connecting to the database doesn't have appropriate permission to execute the command. You can give the user you are logging in with a db_owner permission and it should be okay.
> It occurs on a SQLDataAdapter.Fill instruction. I suspect it is an ASP.NET > debugging issue, but for all I know it could be an SQL Server issue.....
> Is there something I need to configure in SQL Server (2000) to enable apps > like ASP.NET to debug?
I give the Public group execute permissions to Master\sp_sdidebug via Enterprise Mgr and it works [wayhey!].
However, I suspect that this is a very liberal approach in terms of security(!); is there a better way of going about this? I couldnt see a way of just giving one or two users the appropriate rights...
Also, this seems a bit of a ball-ache! I'd have thought there was a cleaner and simpler (ie automated) way of doing all this; have I missed something along the way?
Thanks
"Jacco Schalkwijk" <NOSPAMjac...@eurostop.co.uk> wrote in message
> There are no permissions granted on sp_sdidedebug by default, so you have to > be a member of the System Administrators server role to be able to execute > it, being dbo is not enough. You can grant permissions to other logins on > sp_sdidedebug though.
> I give the Public group execute permissions to Master\sp_sdidebug via > Enterprise Mgr and it works [wayhey!].
> However, I suspect that this is a very liberal approach in terms of > security(!); is there a better way of going about this? I couldnt see a way > of just giving one or two users the appropriate rights...
Depends. If your server is a development server to which only a limited number of developers have access in the first place it won't be much of a problem. You should never give permissions on sp_sdidebug on a production server.
To grant separate logins permissions on the stored procedure you have to add them as users to the master database first. If logins access the master database and they dare not associated with a user account they will use the guest user instead, and guest is a member of the public database role in master. That is how your current solution works, very liberal security indeed :-).
Btw, make sure you don't confuse (Windows) users with (SQL Server) logins or (database) users, or (Windows) groups with (sql) server roles or (database) roles. They are all different and if you use the incorrect terminology things can get very confusing.
> Also, this seems a bit of a ball-ache! I'd have thought there was a cleaner > and simpler (ie automated) way of doing all this; have I missed something > along the way?
Nope, security is a bit of trouble, and sp_sdidebug is an extended procdure that digs quite deep into SQL Server internals, so it is best protected well.
> "Jacco Schalkwijk" <NOSPAMjac...@eurostop.co.uk> wrote in message > news:OBlBdcJGDHA.392@TK2MSFTNGP12.phx.gbl... > > There are no permissions granted on sp_sdidedebug by default, so you have > to > > be a member of the System Administrators server role to be able to execute > > it, being dbo is not enough. You can grant permissions to other logins on > > sp_sdidedebug though.
Yes this is indeed for my development machine (ie its a standalone XPSP1 rather a win2k server), but I still dont like giving away more than I have to, so I'll set up one SQL account to execute the SP rather than Public.