Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Does Teradata support database/schema aliases - response (2) by Qaisar Aftab Kiani

$
0
0

You can't pass on database names as the parameter list. The dirty way could be that you can put a check using IF statement and then write two SQLs and fetch the results from TEST or PROD based on the parameter value.
Or alternatively you can build a dynamic SQL using the database name string from the parameter and execute it through DBC.SYSEXEC. But obviously there are limitations for dynamic SQL execution... You need to be aware of that before choosing this option.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>