Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
When I use
dbschema -d database -f all
I get an output containing 2011 stored procedures.
A count(*) of sysprocedures yields 2350.
How can I identify in the sysprocedures table just those procedures
which appear in the dbschema output. Is there a flag which indicates
system or user stored procedures? Maybe the value of procid has a
special meaning in the same way that tabid's <= 99 are system tables.
Does anyone know?
Thanks.
On Wed, 2006-12-27 at 17:28 -0800, Desmodromic wrote:
> When I use
>
> dbschema -d database -f all>
> I get an output containing 2011 stored procedures.
>
> A count(*) of sysprocedures yields 2350.
>
> How can I identify in the sysprocedures table just those procedures
> which appear in the dbschema output. Is there a flag which indicates
> system or user stored procedures? Maybe the value of procid has a
> special meaning in the same way that tabid's <= 99 are system tables.
> Does anyone know?
System procedures:
select count(*) from sysprocedures where mode = lower(mode)
User procedures:
select count(*) from sysprocedures where mode = upper(mode)
Hope this helps,
Carsten.
↪ replying to Desmodromic
Art S. Kagel — — source: Usenet: comp.databases.informix
Desmodromic wrote:
> When I use
>
> dbschema -d database -f all>
> I get an output containing 2011 stored procedures.
>
> A count(*) of sysprocedures yields 2350.
>
> How can I identify in the sysprocedures table just those procedures
> which appear in the dbschema output. Is there a flag which indicates
> system or user stored procedures? Maybe the value of procid has a
> special meaning in the same way that tabid's <= 99 are system tables.
> Does anyone know?
Add the following clause to your SELECT from sysprocedures:
AND mode NOT IN ('P', 'd', 'r', 'o')
These represent system procedures which dbschema will not print out.
Art S. Kagel
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.