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

OLE DB Source; Sql Command with parameters issue

$
0
0

I have an OLE DB Source based on a sql command, something like

DECLARE @from_lsn NVARCHAR(22)
DECLARE @to_lsn NVARCHAR(22)
SET @from_lsn = ?
SET @to_lsn = ?
SELECT *
FROM cdc.fn_cdc_get_net_changes_dbo_...(CONVERT(BINARY(10), @from_lsn, 1), CONVERT(BINARY(10), @to_lsn, 1), 'all')

Then in the set query parameters screen I map these 2 parameters to 2 variables.

The issue is that the task is working fine with a Sql Server 2012 instance but not in a 2008; whenever I try to execute the task with a connection to a 2008 instance I get this "Syntax error,permission violation, or other nonspecific error"

Anyone knows anything about why this happens?

Thanks in advance

Iulian



Viewing all articles
Browse latest Browse all 24688

Trending Articles