Hi,
Can you please elaborate on the Query? From the understanding it seems that You need to populate data into Schema/DB Prod from Test Schema/Db. If the owner of the Procedure has access to both the PROD & TEST Schemas. He will be able to access data.
There is a keyword called 'DATABASE <<DB_NAME>>;'
The below query will make the default database to TEST. So whatever tables if we use,it will try to search in TEST Schema.
DATABASE TEST;
The below query will make the default database to PROD. So whatever tables if we use,it will try to search in PROD Schema.
DATABASE PROD;
Hi,
Can you please elaborate on the Query? From the understanding it seems that You need to populate data into Schema/DB Prod from Test Schema/Db. If the owner of the Procedure has access to both the PROD & TEST Schemas. He will be able to access data.
There is a keyword called 'DATABASE <<DB_NAME>>;'
The below query will make the default database to TEST. So whatever tables if we use,it will try to search in TEST Schema.
The below query will make the default database to PROD. So whatever tables if we use,it will try to search in PROD Schema.