473,395 Members | 2,436 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,395 software developers and data experts.

Locking a stored procedure!

60
Hi,

Can i lock a stored procedure in mysql so that others can only be able to view it, but they will not be able to alter it?

Thanks,
Lauren
Jun 19 '09 #1
1 2268
Atli
5,058 Expert 4TB
Hi.

You (the database administrator) can decide which privileges each user has.

A user must have the CREATE_ROUTINE privilege to create procedures and the ALTER_ROUTINE privilege to be able to change a procedure.
However, the EXECUTE privilege is all that is required to call a procedure.

So, a user without the first two but with the third would only be able to execute procedures but not alter them.

To grant and revoke privileges, see:
12.5.1.3. GRANT Syntax and 12.5.1.5. REVOKE Syntax.
Jun 19 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Noddy | last post by:
We have an application that updates a row in a table. Sometimes Oracle does not respond for over 10 seconds. This is after an insert. It seems that there is a lock somewhere. This is a multi user...
3
by: Job Lot | last post by:
How can I lock records in VB.NET application using ADO.NET?
8
by: arijitchatterjee123 | last post by:
Hi Group, I am facing a problem regarding locking. I have created a Stored Procedure in my Database. In this Stored Procedure Temprary Tables get created and after that values are inserted in...
2
by: Dino L. | last post by:
How can I run stored procedure (MSSQL) ?
0
by: Shanmugasundaram Doraisamy | last post by:
Dear Group, We are using Postgresql 7.3.4 on Redhat 8.0 with Java 1.4.2. We are developing our applications in Java. We call stored procedures from the java program. Order numbers are generated...
3
by: Roger Withnell | last post by:
I have a framed website. I plan to include in default.asp a routine to check if the annual subscription is due from the records in the People table. If so, then the routine would send emails...
6
by: Gregor Kovač | last post by:
Hi! Let's say that I have a table TABLE1 in schema A and in SCHEMA B. I have a stored procedure that does a select from A.TABLE1 and inserts rows from that select in B.TABLE1. When the...
1
by: bjornsuneandersen | last post by:
I have a Stored Procedure that performs a simple SELECT. The Select have no locking hints or other hints and the database is set up in a standard configuration. The problem is that the SELECT...
3
by: Brad Pears | last post by:
I have a vb.net 2005 app that asks for a job number. After the job number has been entered, I run an SQL 2000 stored procedure that selects the appropriate row from the Jobs table. I do not want to...
4
zachster17
by: zachster17 | last post by:
Hi everyone, Is there anyway to run a sql server stored procedure from access (using the ADODB.Command object) without locking up the access application? For example, I want a list to populate...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.