B
bsdz
Hi
I am having trouble saving extended properties via my Access 2007 ADP
project. When I make a design change and attempt to save it down I receive an
"Object is invalid. Extended properties are not permitted on '<schema
name>.<stored proc name>', or the object does not exist." error.
I have done a little investigating using SQL profiler and discovered that
Access sends the following SQL call: -
exec sp_executesql N' exec "sp_addextendedproperty"
@P1,@P2,@P3,@P4,@P5,@P6,@P7,@P8 ',N'@P1 nvarchar(14),@P2 tinyint,@P3
nvarchar(4),@P4 nvarchar(3),@P5 nvarchar(9),@P6 nvarchar(13),@P7
nvarchar(1),@P8 nvarchar(1)',N'MS_Orientation',0,N'user',N'<schema
name>',N'procedure',N'<stored proc name>',NULL,NULL
Please note the level0type is set to 'USER'. In the help on-line it is
recommended to be set to 'SCHEMA' to stop object name ambiguity.
Actually if I attempt to run the above stored proc in SSMS I receive the
same error; however, if I change to level0type to 'SCHEMA' the procedure
completes successfully and I can see the extended property attached to my
object.
Does anyone know of any work around? Perhaps something that will force my
ADP project to use SCHEMA instead of USER?
Thanks in advance
Blair
I am having trouble saving extended properties via my Access 2007 ADP
project. When I make a design change and attempt to save it down I receive an
"Object is invalid. Extended properties are not permitted on '<schema
name>.<stored proc name>', or the object does not exist." error.
I have done a little investigating using SQL profiler and discovered that
Access sends the following SQL call: -
exec sp_executesql N' exec "sp_addextendedproperty"
@P1,@P2,@P3,@P4,@P5,@P6,@P7,@P8 ',N'@P1 nvarchar(14),@P2 tinyint,@P3
nvarchar(4),@P4 nvarchar(3),@P5 nvarchar(9),@P6 nvarchar(13),@P7
nvarchar(1),@P8 nvarchar(1)',N'MS_Orientation',0,N'user',N'<schema
name>',N'procedure',N'<stored proc name>',NULL,NULL
Please note the level0type is set to 'USER'. In the help on-line it is
recommended to be set to 'SCHEMA' to stop object name ambiguity.
Actually if I attempt to run the above stored proc in SSMS I receive the
same error; however, if I change to level0type to 'SCHEMA' the procedure
completes successfully and I can see the extended property attached to my
object.
Does anyone know of any work around? Perhaps something that will force my
ADP project to use SCHEMA instead of USER?
Thanks in advance
Blair