Neil Toulouse
Programmer
Hi there!
I am trying to find a way of quickly identifying which of the stored procedures are user created (this is for my VFP upsizing wizard).
I have had a look at the SYSOBJECTS table with:
...and the only difference I can see between a user and system created SP is that the field base_schema_ver has a zero value if it is user created.
I can therefore use this to spot user created SP's, ie:
..but only if this value doesn't change!
Could anyone tell me if this will be sufficient for my needs, or is there a better way to achieve what I am after?
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...
I am trying to find a way of quickly identifying which of the stored procedures are user created (this is for my VFP upsizing wizard).
I have had a look at the SYSOBJECTS table with:
Code:
SELECT * FROM dbo.sysobjects where type = 'P'
...and the only difference I can see between a user and system created SP is that the field base_schema_ver has a zero value if it is user created.
I can therefore use this to spot user created SP's, ie:
Code:
SELECT * FROM dbo.sysobjects where type = 'P' and base_schema_ver = 0
..but only if this value doesn't change!
Could anyone tell me if this will be sufficient for my needs, or is there a better way to achieve what I am after?
TIA
Neil
I like work. It fascinates me. I can sit and look at it for hours...