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

Using Table Variable in OLE DB Source

$
0
0

 

Hi,

 

I have used a Table Variable in an SQL script to retrieve data from a source databse using the OLE DB Source Data Flow tool. The OLE DB Destination recognises the table and allows the columns to be mapped, but when the SSIS package is run no data is returned to the destination table.

 

The last line of the SQL Command in the OLE DB Source is :

 

SELECT

* FROM @Var

 

The SQL code executes correctly in the SQL Management Studio.

Have I run into a scope problem?

 

Cheers

Wee!


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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