Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: Re-using Table Variable in Procedure

$
0
0

Hello Anoop,

 

you cannot use var1 for the second select too (if the structure of the tables are different). The SQLScript compiler determines the type of var1 during the first execution of the first select. The type of var1 is then fix for the whole procedure execution.

 

Regards,

Florian


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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