INF: Grant or Revoke Permissions for ESQL Stored ProceduresLast reviewed: April 29, 1997Article ID: Q112714 |
The information in this article applies to:
- Microsoft Embedded SQL version 4.21 for COBOL
SUMMARYWhen 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.
MORE INFORMATIONDepending on your specific requirement, you may choose one of the following two options:
isql -Usa -Ppassword -Smyserver -igetnames.sql -ograntall.sql isql -Usa -Ppassword -Smyserver -igrantall.sqlNOTE: You will need to modify the scripts GETNAMES.SQL and GRANTALL.SQL to remove the headers and other non Transact-SQL text, and add the necessary Transact-SQL commands such as "use yourdatabase" and "go". You can also use MS-DOS batch commands such as ECHO to automate the generation and execution of the scripts.
|
Additional query words:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |