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

Dynamic Bteq script - dbname as parameter - topic by Lavanya324

$
0
0
I have a bteq script which creates procedures inside a database. The dbname say DB1 i will be specified in the bteq command. The new change we have got now is that the statements inside the procedures would access tables of another DB say DB2. Can we have a dynamic bteq script where we can specify DB2 too as a parameter?? Or any other solution for this?? Eg: CREATE PROCEDURE DB1.test() Dynamic result sets 1 BEGIN DECLARE CUR_LEVEL_LST CURSOR WITH RETURN ONLY FOR SELECT *   FROM DB2.tablename;

read more


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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