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

unable to pass values to the parameter through ssis package

$
0
0

HI All,

  I have created a package , which is internally calling a stored procedure with one input parameter(ex:@History). Now I have to pass values(1,2,3,4........11,12) to the parameter(@History) through ssis package. If value =1 then sp will fetch the data for 6 months(logic of sp : Need to fetch data for 6 years(For every value 6 months data)) . I have to pass values from outside of the package. I have used below property to pass values to the parameter undersetvalues when i select Type: sql server Integrationservices package inSqlserver Agent Job:

\package.variables[variableName].Value ; value

Ex:\package.variables[History].Value ; 1

      \package.variables[History].Value ; 2

       \package.variables[History].Value ; 3

upto   \package.variables[History].Value ; 12

  I have added twelve steps in each step i have  given above property.

When i run the package the following error i am getting:

Message
Executed as user: VMT\KE-DV6-SVC-SQL. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.2531.0 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  14:06:53  Error: 2012-12-15 14:06:53.68     Code: 0xC0202009     Source: Data Flow Task OLE DB Source [1]     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Syntax error, permission violation, or other nonspecific error".  End Error  Error: 2012-12-15 14:06:53.68     Code: 0xC004706B     Source: Data Flow Task SSIS.Pipeline     Description: "component "OLE DB Source" (1)" failed validation and returned validation status "VS_ISBROKEN".  End Error  Error: 2012-12-15 14:06:53.68     Code: 0xC004700C     Source: Data Flow Task SSIS.Pipeline     Description: One or more component failed validation.  End Error  Error: 2012-12-15 14:06:53.68     Code: 0xC0024107     Source: Data Flow Task      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  14:06:53  Finished: 14:06:53  Elapsed:  0.297 seconds.  The package execution failed.  The step failed.

Can anyone help on this?

Thanks in advance

Visu


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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