473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SQL 7.0 Stored Procedure Execute Privileges Only?

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
Apr 14 '06 #1
3 1818
Hi Ed

Check out the GRANT command in Books Online.

John

"Edbar" <ed***@exmsft.com> wrote in message
news:FpT%f.1351$pi6.576@dukeread12...
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

Apr 15 '06 #2
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" <ed***@exmsft.com> wrote in message
news:FpT%f.1351$pi6.576@dukeread12...
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

Apr 16 '06 #3
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

Apr 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dinesh prasad | last post by:
I'm trying to use a servlet to process a form, then send that data to an SQL server stored procedure. I'm using the WebLogic 8 App. server. I am able to retrieve database information, so I know my...
1
by: Purple-Man | last post by:
wanted to use sp_OACreate, sp_OAMethod and sp_OADestroy to execute a DTS package from a stored procedure. I had the dba (using the sa account) create a wrapper stored procedure as recommended in...
5
by: Andy S. | last post by:
Hi, I'm new to DB2. I want to view all the exisiting privileges (i.e. which users have which privilegens) for a given stored procedure that exists on the database. How do I do this? Thanks...
2
by: Dino L. | last post by:
How can I run stored procedure (MSSQL) ?
2
by: Eli | last post by:
Hi all We currently have a strange problem with calling a Stored Procedure (SQL Database) in our C# Project. The only error I get is "System error" which says a lot :) Background: We have...
0
by: Amber | last post by:
Stored procedures are faster and more efficient than in-line SQL statements. In this article we will look at two SQL Server stored procedures; one using an input parameter and one not, and see how...
0
by: pompeyoc | last post by:
I am trying to learn how to use stored procedures written in COBOL so I wrote 2 small programs to test it out: the stored procedure and the the calling program. I have no problems compiling them...
3
by: John Dohn | last post by:
I can work with them just fine in VS but when I run my app, I get a select permission denied error on any view and execute permission denied on any SP in my web app. All was worked fine until...
2
by: acw | last post by:
On a SQL Server 2000 db I would like to setup a stored procedure that accesses couple tables and runs the extended stored procedure xp..cmdshell. The goal is to grant users with limited privileges...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.