Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

Declare @table in BODS

$
0
0

I just would like to create temporary tables and put records to table using BODS. Is it possible to do in one script or using other transformation something like this below:

 

Declare @Type Table

  (

  type varchar(2)

  )

  Insert into @Type(type)

  Values('A'),('B'),('C'),('D');

  

  

  Declare @Second Table

  (

  Second varchar(3)

  )

  Insert into @Second(Second)

  Values('N'),('Y');

  

 

  

  Declare @Check Table

  (

  type varchar(2),

  Second  varchar(3),

  rank int

  )

  Insert Into @Check

  Select b.type, a.Second ,

  ROW_NUMBER() over ( order by a.Second ) rnk

  From @Second a

  Cross Join @Type b

  Order by a.Second;

 

 

  Select *

  From

  @Check

 

Is it possible to declare temporary tables in BODS?


Viewing all articles
Browse latest Browse all 3280

Trending Articles



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