Variable in File System Task

  • Hi All,

    I need to grab the results of a select statement in a variable and there are more than 1 rows in the result, but just one column.

    I used oledb source and wrote a select statement there and then added a RECORDSET DESTINATION, and set variable(of type object) there. All is well till here. However, I need to use this variable in a File System Task in a For Each Loop. But the File System Task only expects string variables. Any other way of doing this?

    Any help would be truly appreciated.

    Thanks in advance.

  • Sam1980 (9/23/2010)


    Hi All,

    I need to grab the results of a select statement in a variable and there are more than 1 rows in the result, but just one column.

    I used oledb source and wrote a select statement there and then added a RECORDSET DESTINATION, and set variable(of type object) there. All is well till here. However, I need to use this variable in a File System Task in a For Each Loop. But the File System Task only expects string variables. Any other way of doing this?

    Any help would be truly appreciated.

    Thanks in advance.

    Create an object type variable and using the Script task convert it into necessary type and include the logic you wish to implement in FST in the script task itself

    Raunak J

  • Hi,

    does the for each loop iterates based on the no. of rows from select statement you mentioned ??

    Regards,

    Amar

    BI Developer
    SSRS, SSIS, SSAS, IBM Cognos, IBM Infosphere Cubing services, Crystal reports, IBM DB2, SQL Server, T-SQL
    Please visit... ApplyBI

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply