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

Execute SQL Not Working

$
0
0

All - 

I have an execute sql task set up as follows:

ResultSet = Single Row

Connection Type = OLE DB

SQL Source Type = Direct Input

SQL Statement = execute dbo.StoredProcedure @FileName = ? @FileCount = ? OUTPUT

(The sp queries a table with @FileName to see if the supplied file name already exists, and outputs 1 if true and 0 if false)

Parameter Mapping:

Variable Name = User::FileName, Input, Long, 0, -1

Variable Name = User::FileCount, Output, Long, 1, -1

It is returning the following error: "Executing the following query...failed with the following error: "Invalid Parameter Number." Possible failure reasons : problems with the query, "ResultSet" not set properly...etc

Any ideas?

Thank you!


Bonediggler


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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