Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Assign Value returned by TVF to variable in TSQL

$
0
0

I have to assign a value returned by SELECT * FROM MyTableValueFunc() to a variable in TSQL.How can i do that ?

e.g  Declare myVariable varchar(1000)

SET myVariable = (SELECT * FROM MyTableValuedFunc()); <---- Something of this sort.

Thanks,

BR,


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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