473,564 Members | 2,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Excel Import versus XML Import

Gaz
I am currently developing an ASP.NET 2.0 app part of the app will involve
collecting a large amount of data offline and then importing this data into
the system

My question is what will be more effiecient from a system
resources/performance point of view. If I go down the Excel route then for
every sheet parsed (and there could be up to 20 of them) I will have check
5400 cells to see if there is any data in them.

If I use an XML file to store the information (with the aid of a windows app
on the client) there would be a maximum of about 1800 nodes per sheet.

So will I be better importing from Excel or XML?

Jul 4 '06 #1
2 1514
V
Well first of all,

If you use Excel, then you have to be aware of the two things:
1. You will require a licensed version of Excel to be present on every
machine where the data is being generated.

2. You will need to automate excel on the server, and that has its own
set of problems, because Office application are not designed to run in
a server mode, unless you are working with Office 2003, which allows
this kind of functionality using VSTO.
Check out for Server-Side Automation:
http://support.microsoft.com/kb/257757/EN-US/
Check out for Server-side using VSTO:
http://msdn.microsoft.com/library/de...gistration.asp

- V

Gaz wrote:
I am currently developing an ASP.NET 2.0 app part of the app will involve
collecting a large amount of data offline and then importing this data into
the system

My question is what will be more effiecient from a system
resources/performance point of view. If I go down the Excel route then for
every sheet parsed (and there could be up to 20 of them) I will have check
5400 cells to see if there is any data in them.

If I use an XML file to store the information (with the aid of a windows app
on the client) there would be a maximum of about 1800 nodes per sheet.

So will I be better importing from Excel or XML?
Jul 4 '06 #2
2. You will need to automate excel on the server, and that has its
own set of problems, because Office application are not designed to
run in a server mode, unless you are working with Office 2003, which
allows this kind of functionality using VSTO.

Kinda true, but for reading purposes you can also connect via ODBC / ADO
to Excel... additionally, if you only read excel in once and store the
data anywhere else (e.g. database), then having a windows service in the
background might be more efficient and would not interfere with any
asp.net stuff.

hth
Markus
Jul 5 '06 #3

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

Similar topics

1
3191
by: Richard Holliingsworth | last post by:
Hello: Thanks for your quick response. I'm trying to import a new Excel file into an A2K table and it's truncating the data. One of the Excel columns is a text field that can be up to 2000 characters. When I import it into A2K, that field is truncated. If I try to inport the file into an EXISTING table that I define myself where that...
9
3899
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. There is no further explanation. What are the kinds of things that make this happen? Thanks from an obvious rookie. Gordon
8
6544
by: Nick M | last post by:
Hello All, Excellent info here Thanks! I am very new to using access in general and I am on a learning curve. I'm trying to import an excel workbook (with worksheets) into an access db via a macro. (I'll get to using VB later on). What I would like to do is import a single workbook w/three seperate worksheets into three seperate access...
2
3981
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType = "application/vnd.ms-excel"; Response.Charset = ""; this.EnableViewState = false;
10
11804
by: Niklas | last post by:
Hi Before I start coding I need to be sure that nobody else has not done it yet and that I can use it. I need an import utility which import data from Excel to a database or some object in .NET. The data in Excel is not in structured columns but can exist everywhere in the workbook. For example if I am supposed to import a person and all...
0
14405
by: Grip | last post by:
Hi, I have gone throught the group and Microsoft's online help and have seen many suggestions but I am still seeking clarity: 1. I have an excel spreadsheet. Column A contains text that may be greater than 255 characters. 2. I have an access database. I link (not import) to the contents of the excel spreadsheet. In the design view in...
0
2727
by: liam_jones | last post by:
I'm very new to Python, well IronPython to precise, and have been having problems when using Excel. The problem I'm having is the closing of my Excel object. I'm able to successfully quit the Excel Application that I create, but when I open a Workbook in the Application I can't successfully Quit Excel (by this I mean I can quit it, but the...
1
8701
by: baling | last post by:
Hi.... Hi everybody, i have a code that i make in VBA and know I want to use this code in to VB6. But i don't know how to use that code in to VB 6.0 Please correct this code so i can use it in VB 6.0. Code: --- use in mainform ------- Option Compare Database Option Explicit
4
1781
by: The Frog | last post by:
Hi Everyone, Just wondering if anyone knows of a module / add-in that handles ETL for an Excel spreadsheet into Access. There is one specific requirement, that values in the source Excel file are 'mapped' to values in the database. There is a table structure that defines the values available in the target table, so the 'mappings' need to...
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6255
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.