dbTalk Databases Forums  

SQL 7.0 Stored Procedure Execute Privileges Only?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss SQL 7.0 Stored Procedure Execute Privileges Only? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Edbar
 
Posts: n/a

Default SQL 7.0 Stored Procedure Execute Privileges Only? - 04-14-2006 , 03:15 PM






SQL 7.0 Stored Procedure Execute Privileges Only?

Does anyone know if a user/pass can be set up to give
a sql 7.0 user stored procedure execute privileges only.

That way, even if they get into the database, they can
do nothing except run the stored procedures.

Thanks,
Ed



Reply With Quote
  #2  
Old   
John Bell
 
Posts: n/a

Default Re: SQL 7.0 Stored Procedure Execute Privileges Only? - 04-15-2006 , 08:45 AM






Hi Ed

Check out the GRANT command in Books Online.

John

"Edbar" <edbar (AT) exmsft (DOT) com> wrote

Quote:
SQL 7.0 Stored Procedure Execute Privileges Only?

Does anyone know if a user/pass can be set up to give
a sql 7.0 user stored procedure execute privileges only.

That way, even if they get into the database, they can
do nothing except run the stored procedures.

Thanks,
Ed





Reply With Quote
  #3  
Old   
Jack Vamvas
 
Posts: n/a

Default Re: SQL 7.0 Stored Procedure Execute Privileges Only? - 04-16-2006 , 02:16 AM



Yes, you can eitther do it through Enterprise Manager or use
GRANT EXECUTE on mySp TO PUBLIC (or whatever user )
there is also a DENY

--
Jack Vamvas
___________________________________
Receive free SQL tips - www.ciquery.com/sqlserver.htm

"Edbar" <edbar (AT) exmsft (DOT) com> wrote

Quote:
SQL 7.0 Stored Procedure Execute Privileges Only?

Does anyone know if a user/pass can be set up to give
a sql 7.0 user stored procedure execute privileges only.

That way, even if they get into the database, they can
do nothing except run the stored procedures.

Thanks,
Ed





Reply With Quote
  #4  
Old   
Ajay Rengunthwar
 
Posts: n/a

Default Re: SQL 7.0 Stored Procedure Execute Privileges Only? - 04-19-2006 , 06:54 AM



If you are looking to restrict access through application You can think
of.....
Application role, which allows you to create a role for your
application and grant only this role the proper rights. This role
requires a separate password authentication before granting the rights
associated with the role. So, the user can log in with his own ID and
password. Make sure in your application, you use the sp_setapprole with
a password that only you and your application know to activate the
proper rights. Although the user will be able to log in to SQL Server
through another tool, he will not be able to access without knowing the
password for the application role.

Hope this helps.

Thanks
Ajay Rengunthwar
MCDBA,MCAD


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.