How to retrieve a bigint from a database and place it into an Int64 in SSIS

Posted by b0fh on Stack Overflow See other posts from Stack Overflow or by b0fh
Published on 2010-06-01T15:25:13Z Indexed on 2010/06/01 15:43 UTC
Read the original article Hit count: 277

Filed under:
|
|

I ran into this problem a couple years back and am hoping there has been a fix and I just don't know about it. I am using an 'Execute SQL Task' in the Control Flow of an SSIS package to retrieve a 'bigint' ID value. The task is supposed to place this in an Int64 SSIS variable but I getting the error: "The type of the value being assigned to variable "User::AuditID" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object."

When I brought this to MS' attention a couple years back they stated that I had to 'work around' this by placing the bigint into an SSIS object variable and then converting the value to Int64 as needed. Does anyone know if this has been fixed or do I still have to 'work around' this mess?


edit:

Server Stats

  • Product: Microsoft SQL Server Enterprise Edition
  • Operating System: Microsoft Windows NT 5.2 (3790)
  • Platform: NT INTEL X86
  • Version: 9.00.1399.06

© Stack Overflow or respective owner

Related posts about ssis

Related posts about type-conversion