If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP read Excel file performance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-09-04, 22:01
hykc hykc is offline
Registered User
 
Join Date: Oct 2004
Posts: 8
ASP read Excel file performance

Hi,

I would like to know, is ASP read excel file take lots of system resource?


I'm doing something like this, read the excel file and insert record from Excel to mssql. If couple of people do this operation, the website is very slow and the CPU usage is 100%
The system is P3 Xeon 700mhz, 4G Ram

Also if i have a excel file which contain around 1000 rows, it always stop at around row 200 (it took around 15 or so minutes), I guess it is dued to the script timeout.


objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & XLFile &";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""
objConn.Open
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.ActiveConnection = objConn
objRS.CursorType = 3
objRS.LockType = 2
objRS.Source = "Select * from [Sheet1$]"
objRS.Open
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On