Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Making the SSIS Data Reader Source Query Dynamic

Making the SSIS Data Reader Source Query Dynamic

Scheduled Pinned Locked Moved Database
databasesql-serverquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 8047461
    wrote on last edited by
    #1

    Hi Guys, My data source is FoxPro for Unix using ODBC connection i would like to bring it to sql 2005 by SSIS 2005. Can any one explain how i could use Dynamic SQL using SSIS Datareader Like for instance "SELECT * FROM " @[User::TableName] expression??? Please explain the Steps to follow. Thank you

    S 1 Reply Last reply
    0
    • U User 8047461

      Hi Guys, My data source is FoxPro for Unix using ODBC connection i would like to bring it to sql 2005 by SSIS 2005. Can any one explain how i could use Dynamic SQL using SSIS Datareader Like for instance "SELECT * FROM " @[User::TableName] expression??? Please explain the Steps to follow. Thank you

      S Offline
      S Offline
      S Douglas
      wrote on last edited by
      #2

      Member 8082021 wrote:

      Can any one explain how i could use Dynamic SQL using SSIS Datareader Like for instance

      Oh this is a fun one; you will need a variable and build the syntax of your query in an expression. Then in the 'data flow', 'source editor' change, 'data access mode' to 'SQL Command from variable. It can be done, just take a little bit of creativity.


      Common sense is admitting there is cause and effect and that you can exert some control over what you understand.

      U 1 Reply Last reply
      0
      • S S Douglas

        Member 8082021 wrote:

        Can any one explain how i could use Dynamic SQL using SSIS Datareader Like for instance

        Oh this is a fun one; you will need a variable and build the syntax of your query in an expression. Then in the 'data flow', 'source editor' change, 'data access mode' to 'SQL Command from variable. It can be done, just take a little bit of creativity.


        Common sense is admitting there is cause and effect and that you can exert some control over what you understand.

        U Offline
        U Offline
        User 8047461
        wrote on last edited by
        #3

        Thank you so much for your help. I am having an issue could you please give me a more detailed step in solving this problem. I have to sort this problem now. Please advice KB

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups