Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

How passed parameter(variables) into sql transform in Data Flow?

$
0
0

Hi! I try to describe my problem, may be somebody knows how to solve it. I have table in database (MS SQL Server) which contains name of other table which I need to use in query. I created global variables $test, $test1 and then assigned value in Script component: $test=(Select Name_Table From MappingTable Where MemberId=1); $test1='Select * From'+' '+@test. Then I used SQL Transform in Data Flow and wrote in text SQL: exec sp_executesql @test1. Image f5c86-clip-98kb.png . But When I try to refresh Schema I see error:Image b2494-clip-18kb.png . What is wrong? Or may be there are other ways to do that. Please, give me some advice. Unfortunately, I'm beginner in Sap BODS. Thanks.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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