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

How to read/import an excel file programmatically to a db?? help

Hello,
I never had to do anything with office tools programmatically till now(I
guess there is first time for everything), so this might be a very silly and
simple question for some of you.

Any way, the new system that I am programming will need to be feeded daily
with an excel file. So I need to read a given file and write it to the
database - hopefully they all will follow the same structure.

My issue is I haven't found anything that says how to read an excel file, I
mean a very structured way to read every cell of rows and columns. So far
have seen very through articles here on how to work with excel but nothing
about how to read throughly an excel file.

So a link or a sample code that would show me how to get going on this,
reading all the rows and columns in a excel file, will be a great help.

thanks in advance,
Reza
Apr 20 '06 #1
2 3138

You can read my entry at

http://www.sqlservercentral.com/colu...ataimports.asp

Also, ... read thru the "discussion forum" for this topic... other people
present some ideas.

...

"Reza Solouki" <Re*********@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
Hello,
I never had to do anything with office tools programmatically till now(I
guess there is first time for everything), so this might be a very silly and simple question for some of you.

Any way, the new system that I am programming will need to be feeded daily
with an excel file. So I need to read a given file and write it to the
database - hopefully they all will follow the same structure.

My issue is I haven't found anything that says how to read an excel file, I mean a very structured way to read every cell of rows and columns. So far
have seen very through articles here on how to work with excel but nothing
about how to read throughly an excel file.

So a link or a sample code that would show me how to get going on this,
reading all the rows and columns in a excel file, will be a great help.

thanks in advance,
Reza

Apr 20 '06 #2
fed Excel

and hopefully?

and asp.net?
"Reza Solouki" <Re*********@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
Hello,
I never had to do anything with office tools programmatically till now(I
guess there is first time for everything), so this might be a very silly
and
simple question for some of you.

Any way, the new system that I am programming will need to be feeded daily
with an excel file. So I need to read a given file and write it to the
database - hopefully they all will follow the same structure.

My issue is I haven't found anything that says how to read an excel file,
I
mean a very structured way to read every cell of rows and columns. So far
have seen very through articles here on how to work with excel but nothing
about how to read throughly an excel file.

So a link or a sample code that would show me how to get going on this,
reading all the rows and columns in a excel file, will be a great help.

thanks in advance,
Reza

Apr 21 '06 #3

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

Similar topics

2
by: David Berry | last post by:
Hi All. I'm looking for any help or sample code that can show me how to make a file import wizard in ASP.NET (VB preferred) like the one that MS Access uses. I'm working on a web site where the...
10
by: sarunnio | last post by:
How do I read an excel file to display the worksheet on the web. Can I make use of some excel automation to programmatically manipulate the excel file via the web browser. Thanks in advance. ...
6
by: Syvman | last post by:
Here's what I've got: I'm trying to grab some data out of an Excel spreadsheet and bring it into Access. I'm able to do it, but only if the Excel spreadsheet is not opened by any other users. I...
1
by: Reggae | last post by:
Hello, I am looking for the most efficient way to programmatically batch import excel files into MS Access. The excel files are not lined up in a row and currently I am going to each file so I...
12
by: kath | last post by:
How do I read an Excel file in Python? I have found a package to read excel file, which can be used on any platform. http://www.lexicon.net/sjmachin/xlrd.htm I installed and working on the...
2
by: KingoftheKings | last post by:
I'm new here. I want a help with VB codes that will import text or excel files from a specified directory in to an existing or new Access table. I have written some codes, but when I click the...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
2
by: thesti | last post by:
hello, how to programmatically from VB .net / php. to import data from an EXCEL file? is there's no programmatic way, how to automated the process. as i search, the process is: Simply...
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: 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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.