Hello
To me, rather than exploring how to access tables/views defined in another schema, I would explore how you can possibly execute SP from another schema, being in a particular schema.
I don't think inter-schema execution of SP is possible. When you try do a CALL to an SP in schema Y, being in a SP in schema X, I don't think the runtime would automatically attach schema Y.
To my knowledge, an SP call within an SP can only inherit SCHEMA with which the calling SP is executed.
If my understanding of your problem is not correct, let me know
------------------------------------------------------------------------------
Quote:
Originally posted by Dipanjan
I had posted this question earlier but did not get any reply - may be I was not very clear with my query.
We are on UDB V8.1 ( on AIX)
Is it possible for me to create a stored proc (A) in schema X and access
tables/views in schema Y ? How do I do this ? Because currently I am building the SP from within the development center where I can only specify the schema to which the SP should belong.
I am not doing the bind step explicitly.
Can someone tell me what are the steps to be followed in such a case ?
Also if there is a way to specify the function path while building the SQL stored proc.
Any help is greatly appreciated.
|