Solved

What is the easiest way to get data from the linked tables in ACCESS into SQL Server?

Posted on 2016-10-25
8
68 Views
Last Modified: 2016-10-31
Thank you in advance.

We have linked tables in MSAccess. They are linked via ODBC to a third party application, Smartsheet. I would like to bring the data into SQL Server 2012 via SSIS. However, when I make the packages, I can see all the tables in MsAccess, except the linked tables.

I created macros/vbcode to make a mirror of those linked tables. The macros delete the rows and then populate the table with the current data moving it from the linked tables to these new static tables. Or at least they did. As soon as I  used the "SQL Server" button on the "Database Tools" to create a link between SQL and MSACESS, my macros stopped working.  I get the error "could not delete from specified tables".

This is begs the question:

What is the easiest way to get data from the linked tables in ACCESS into SQL Server?

Thank you all in advance for any suggestions and alternate approaches.

-vn
0
Comment
Question by:Victor Nares
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 125 total points
ID: 41859128
try converting the Linked tables to Local tables before upsizing.

right click on the linked table and select convert to local table
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 41859140
>when I make the packages, I can see all the tables in MsAccess, except the linked tables.
Correct, as in general you can't link to a linked table...

Also I'm not familar with Smartsheet, so I'm guessing that there's not a lot of SSIS / Bulk Upload / ? processes that will be able to do a direct pump from SmartSheet to SQL Server.  Best to avoid that step and use Ray's quickie conversion to local tables, then move to SQL.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 41859152
hi Jim ;-)
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 125 total points
ID: 41859207
Linked tables in Access are nothing more than a pointer to another datasource.

So what you'd need to do is go directly to that source rather than through Access.

Or you could use Ray's suggestion of making local tables in Access if the data size is not too big.

Jim.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 41859214
@Jims
my name is REY not RAY :-)
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 41859228
Hi Rey - Long time no chat.  Sorry for the typo, my middle name is Raymond so that was kind of a knee-jerk reaction..
0
 
LVL 57
ID: 41859238
I've got no such excuse....wonder how many times I've done that?

  Your not the only one Rey....Kelvin Sparks I always call "Kevin"....took me a while to break out of that one.

 Sorry and will try to be more aware.

Jim.
0
 
LVL 36

Accepted Solution

by:
PatHartman earned 250 total points
ID: 41861201
I generally use Access as the slingshot.  Link source1 to Access link target1 to Access.  Create append queries to append source1 to target1.

As the others said, if you want to use SSIS, you must go directly to the source.  You cannot see linked tables from other applications.  In fact, if you try to link to tables in Jet/ACE database, you can only see them if you link to the source.  You cannot see them by linking to a database that links to them.  So, if db1 has local1, local2, and linked1 and from db2, you choose the link dialog, you will only see Local1 and local2.  However, if you choose the import dialog, you will see all three tables.
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question