INF: Grant or Revoke Permissions for ESQL Stored ProceduresID: Q112714
|
When compiling Embedded SQL for COBOL (ESQL) applications using SQLACCESS option, stored procedures will be created on the SQL Server for all static SQL statements. When executing the static queries at run time, the application will call the stored procedures automatically. Often you may need to grant or revoke execution permissions on the stored procedures for security controls. However, this task may become tedious because there may be many stored procedures and all of them have very long names. This article discusses the options available.
Depending on your specific requirement, you may choose one of the following
two options:
getnames.sql:
select "grant execute on ", name, " to public"
from sysobjects
where name like "myprog%"
isql -Usa -Ppassword -Smyserver -igetnames.sql -ograntall.sql
isql -Usa -Ppassword -Smyserver -igrantall.sql
Keywords : kbprg SSrvCobol SSrvProg
Version : 4.21
Platform : OS/2
Issue type :
Last Reviewed: March 18, 1999