Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

Thanks to latest SA EBF, now is very convenient to get any actual compound query plans immediately, but I have some suggestions.

Due security reasons and for strong interface type checking, all my stored procedures divided to some independent packages with different owners.

create package dba.core_package;
create procedure dba_proc(...) at dba.core_package
grant execute dba_proc to user1;

create package user1.user_package;
create procedure user1.user_proc(...) at user_package
-- remark: user_proc calls dba_proc() within

When user1 invoke and getting plan of user1.user_proc(…),

select plan(user1.user_package.user_proc(..))

than query paln also have full statistics for dba_proc and any procedure invoked from dba_proc.

Is it possible to extend granting security rules for hiding/unhiding statistics for nested stored procedures?


asked 01 Apr '12, 06:27

AlexeyK77's gravatar image

accept rate: 8%

edited 02 Apr '12, 21:01

Graeme%20Perrow's gravatar image

Graeme Perrow

FWIW, the question has been given a "1stapril" tag by the author - i.e. "April Fools' Day"...

(03 Apr '12, 03:29) Volker Barth

Thanks for the suggestion, Alexey. We will investigate potential options.

permanent link

answered 02 Apr '12, 14:01

Glenn%20Paulley's gravatar image

Glenn Paulley
accept rate: 43%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 01 Apr '12, 06:27

question was seen: 3,310 times

last updated: 03 Apr '12, 03:29