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

Need to save and execute a dynamically generated query(greater than 32K bytes) from a Procedure - response (1) by shan

$
0
0

Hi Ankit,
In TD14 Maximum size of a sql can be upto 64K.
Try using below declaration

declare var1 Varchar(45000);
declare var2 Varchar(15000);

The problem will araise If the var1 variable is derived from appending another variable var2 sum of all the variable size should be below 64K.
SET var1 = var1 ||','|| var2;
Hope this may help you
Thanks,
Shan
 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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