Import a Table into Access

  • Thread starter Thread starter gregarican
  • Start date Start date
G

gregarican

There's a data integration application I have to support that uploads
data using Access (oy vey). All of my proprietary data is housed in
intermediate SQL Server tables. Currently I perform the uploads by
opening up Access, then importing the SQL Server tables using Access
so they reside there in the MDB file. Clunky at best since this data
upload will be automatically run each day.

What would be a programmatic way using C# that I could whip up a
script that would do the job? I have googled around a bit and couldn't
find a similar example and am relatively new to C#. Anyone have a good
suggestion or two?
 
There's a data integration application I have to support that uploads
data using Access (oy vey). All of my proprietary data is housed in
intermediate SQL Server tables. Currently I perform the uploads by
opening up Access, then importing the SQL Server tables using Access
so they reside there in the MDB file. Clunky at best since this data
upload will be automatically run each day.

What would be a programmatic way using C# that I could whip up a
script that would do the job? I have googled around a bit and couldn't
find a similar example and am relatively new to C#. Anyone have a good
suggestion or two?

Rather than work outside Access using C# I just resorted to using VBA
within Access itself. Using the DoCmd.TransferDatabase method I was
able to bring in the SQL tables and then just called the Module
procedure from an Access Macro. Done deal :-)
 
You could also look into using Data Transformation Services if your app
allows it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top