Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Assigning SQL result to a variable

$
0
0

Hi,

I need to catch a value from a query and then have to pass it to a variable.

Later again i will use that variable value in another query.

i.e.

1. Execute SQL Task 1 ---> Select City Code from Persons where EmpId = 120

2. Assigning value 120 to user variable

3. Data flow task --- Querying another result set based on the value 120 (Select , . ,. , ,.. from <> where EmpId = 120)

Please let me know how can i achieve this ?

Thanks !


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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