473,396 Members | 1,767 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,396 software developers and data experts.

importing data to Access database

Hi,
i would like to write an app that will do the following:

1. download a csv file from an http url. fields are delimited by the
"|"
2. i would like to import this into an access database
2. i'd like the first row row to be disregarded, as it is the column
names
2. I need to also disregard the last row, but i still need to use it
else where, as it contains the time stamp indicating when the file was
last updated

What the best way to do this? Do i actually have to read line by line,
split the line to determine the fields, and then insert those using
some SQL statement in the database? or can i create some sort of
"spec" that will tell ado how to import this file?

Also, i noticed when i add an Access database to my C# project, it
generates some classes for me which seem to be data access wrapper. Is
that the preferred means of accessing the database?

Nov 17 '05 #1
1 1600
Easy Options
---------------
1. StreamReader, Split, Insert.
2. DTS package
3. Access Import - not sure how to automate, however

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"farseer" wrote:
Hi,
i would like to write an app that will do the following:

1. download a csv file from an http url. fields are delimited by the
"|"
2. i would like to import this into an access database
2. i'd like the first row row to be disregarded, as it is the column
names
2. I need to also disregard the last row, but i still need to use it
else where, as it contains the time stamp indicating when the file was
last updated

What the best way to do this? Do i actually have to read line by line,
split the line to determine the fields, and then insert those using
some SQL statement in the database? or can i create some sort of
"spec" that will tell ado how to import this file?

Also, i noticed when i add an Access database to my C# project, it
generates some classes for me which seem to be data access wrapper. Is
that the preferred means of accessing the database?

Nov 17 '05 #2

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

Similar topics

9
by: Edward S | last post by:
I budget for a Project in an Excel sheet as illustrated below. The months below are usually a 2 year period i.e. 24 months, though it could be over 24 months depending upon a Project. I then...
1
by: sparks | last post by:
I have never done this and wanted to ask people who have what is the best way. One person said import it to excel, then import it into access table. but since this will be done a lot, I am...
7
by: Darren | last post by:
I have been attempting to create a reservation planning form in excel that imports Data from an Access database and inserts that information automaticly into the correct spreed sheet and the...
5
by: dixie | last post by:
If I sent a user an empty database container - dB with no tables and I needed them to import their tables into it and one of their tables was a hidden table with the prefix Usys, is there any way...
1
by: cheungs7 | last post by:
Hi all, Wondering whether you can anyone help me. We have Sage Payroll (and accounting/payroll software), which has a MS Access database where the data is stored. Now I want to access the...
9
by: jillandgordon | last post by:
I am trying to import an excel file into Access 97. It looks perfectly all right but, every time I try to import it, I get to the lst step and am told that it was not imported due to an error. ...
1
by: Geoff Jones | last post by:
Hi I have a question which I hope somebody can answer. I have written a VB application with which I want to import an Excel file, analyze the data within it and do some calculations. There are...
1
by: johnwc | last post by:
Is it possible to automatically populate fields in Access with data from a form that was submitted via an Internet interface to an e-mail address? I understand that you would have to ensure that...
3
by: HistoricVFP | last post by:
Hello, I’ve been given the task of importing .dbf files from a very old version of Visual FoxPro (version 2.1) into Access (2003). When I import the data straight to Access it errors with: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.