I've got a SQL2000 database being accessed by an ASP.NET webpage and I'm trying to add security by denying/granting access to certain sp's for that user.
The webpage connects to SQLServer as the generic user "ASP.NET" and I have a stored proc called up_NoAccess that has exec permission denied for the ASP.NET user (In fact, no user has exec permission on it except I think the dbo implicitely right?). But when I test it out through the web page the stored procedure still executes! I even added a little test select system_user to check if it is actually connecting as ASP.NET and it is.
Can anyone explain why the sp still executes? I'm not sure what I've overlooked.
Thanks.
The webpage connects to SQLServer as the generic user "ASP.NET" and I have a stored proc called up_NoAccess that has exec permission denied for the ASP.NET user (In fact, no user has exec permission on it except I think the dbo implicitely right?). But when I test it out through the web page the stored procedure still executes! I even added a little test select system_user to check if it is actually connecting as ASP.NET and it is.
Can anyone explain why the sp still executes? I'm not sure what I've overlooked.
Thanks.