Return Integer value from SSIS execute SQL Task

Posted by Bokhari on Stack Overflow See other posts from Stack Overflow or by Bokhari
Published on 2012-09-24T13:23:20Z Indexed on 2012/09/24 15:37 UTC
Read the original article Hit count: 189

I am using SQL Server 2005 Business Intelligence Studio and struggling with returning an integer value from a very simple execute SQL Task. For a very simple test, I wrote the SQL Statement as:

Select 35 As 'TotalRecords'

Then, I specified ResultSet as

ResultName = TotalRecords and
VariableName = User::TotalRecords

When I execute this, the statement is executed but the variable doesn't have the updated value. However, it has the default value that I specified while variable definition.

The return of a date variable works, but integer variable isn't working. The type of User::TotalRecords specified is Int32 in a package scope.

Thanks for any hints

© Stack Overflow or respective owner

Related posts about sql-server-2005

Related posts about ssis