473,383 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Import a Table into Access

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?

Jun 19 '07 #1
2 1960
On Jun 19, 10:17 am, gregarican <greg.kuj...@gmail.comwrote:
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 :-)

Jun 19 '07 #2
You could also look into using Data Transformation Services if your app
allows it.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"gregarican" <gr*********@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
On Jun 19, 10:17 am, gregarican <greg.kuj...@gmail.comwrote:
>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 :-)

Jun 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Doug Baroter | last post by:
Hi, One of my clients has the following situation. They use Access DB for data update etc. some business functions while they also want to view the Access data quickly and more efficiently in...
1
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access...
2
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access...
1
by: mark | last post by:
In Access 2000 and 2002, I have created an import specification to import the fixed-width recordset below into an existing table. I am having strange problems with the import of the date and time...
1
by: Dan | last post by:
Could someone please help me with auto importing a series of data files into an Access table. I tried to follow code given below in a previous messagebut i'm getting error messages. Here's my...
10
by: shumaker | last post by:
I don't need a detailed description of a solution(although I wouldn't mind), but I am hoping someone could tell me in general the best path to go about accomplishing a task, since I don't know all...
0
by: NewbieSupreme | last post by:
I'm using PHPMyAdmin on an Apache2Triad install (latest version; 5.x.x, which installs PHP5 and PHPMyAdmin 2.8 as well). In Access, I exported a table to a text file, tab-delimited, text qualifyer...
1
by: lorirobn | last post by:
Hi, I have been manually importing a text file on a weekly basis to an Access table. The data on one field is about to change (happens to be the first field). It was numeric, and is defined as...
4
by: Earl Anderson | last post by:
I guess I missed the boat on the logic for this one. Immediately upon hitting "Import" in an attempt to import an Excel file containing 7 columns of 'txt' formatted data into AXP, I got a "Type...
6
by: provor | last post by:
Hello, I have the following code that I am using when a user presses a button to import an excel file into a table. The code is hard coded to point to the correct table. This works great for this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.