Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7790631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:38:35+00:00 2026-06-01T21:38:35+00:00

good morning. We need to copy tables from Access to SQL. Thing is the

  • 0

good morning.

We need to copy tables from Access to SQL. Thing is the table names in the source vary from day to day.
I’ve followed the steps shown in the solution to this post How do I programmatically get the list of MS Access tables within an SSIS package?

The problem is this:

I changed variable names and that’s all since the problem stated in that post is quite similar to mine.
I followed the steps and changed Country to a Table Name of my Access DB, lets say CITY. Problem is when the process Loops the tables in Access, the data copied to the tables in SQL is always the same. The data stored in CITY, it seems it’s not changing tables, it always use the table provided to the OLE DB source (as shown in screenshot 14#) (the table name provided in the variable ‘SelectQuery’)

So I have all the tables in SQL created but they are all filled with the same information. Info coming from the same table (the one that has its name stated in the variable)

Thanks, any advice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T21:38:37+00:00Added an answer on June 1, 2026 at 9:38 pm

    From reading the linked solution, it looks either incorrect, or missing one step. Right now, screenshot #14 specifies ‘SQL Command from Variable’, and ‘SelectQuery’ as the variable source; I can’t see where SelectQuery is updated.

    Solution 1:
    Set the OLE DB Source to “Table name or view name variable”, and set the variable in question to TableName (which is updated each iteration by the ForEach container)

    Solution 2: Change SelectQuery to be an expression-driven variable, i.e. "select * from " + @[User:TableName]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good morning! I need to move data from Oracle 8i(Enterprise Edition Release 8.1.6.0.0) to
Good morning ! What is the best way to remove duplicate records from grid
Good morning, I have found that many of my customers have MS Access already
Good morning all. I'm having a small crisis with table views in a 3.1
Good Morning everybody. I'm a beginner in .Net languages and need an example to
Good morning, I am retrieving a stream of bytes from a serial device that
Good morning, experts I need your advice. Let's say we have user , profile
Good morning, I am currently working on a project in which I need to
Good Morning All, I have an Objective C question that is coming from JavaScript.
Good morning everbody, I'm trying to pass a UiBinder from a rpc-service to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.