By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,247 Members | 2,145 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,247 IT Pros & Developers. It's quick & easy.

Excel file data import to Sql server 2000 via the asp.net

P: n/a
Hi,

I joined a project where we need to import data from a excel file into
sql server via the asp.net.

After doing a long research found that
#1. Upload Excel file to the server
#2. Load or keep the Excel file into the memory
#3. Query the excel file and convert into insert queries and execute
them via sql server
or
write a DTS package and use it via asp.net

Where can I find more information,
- Which is the best approach and what are adv. and dis-adv.
- How to set the properties of DTS package via asp.net

Any other related links are a good help.

Regards,

Sreedhar Vankayala
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
if you are using xp excel, then try Office XP Inerop Assemblies released by microsoft which help you avoid installing MS excel on the server.

for loading the data into SQL, I'd prefer to batch the data into SQL directly without creating any DTS. Just load the data into a dataAdapter and then batch it as a whole into SQL.

this may help you http://msdn.microsoft.com/library/en...asp?frame=true
hope this would help you.

--
Sarmad Aljazrawi
B.Sc. Computer Science, MSDBA, MCP
www.aljazrawi.net
"Sreedhar Vankayala" <va*****@yahoo.com> wrote in message news:7b**************************@posting.google.c om...
Hi,

I joined a project where we need to import data from a excel file into
sql server via the asp.net.

After doing a long research found that
#1. Upload Excel file to the server
#2. Load or keep the Excel file into the memory
#3. Query the excel file and convert into insert queries and execute
them via sql server
or
write a DTS package and use it via asp.net

Where can I find more information,
- Which is the best approach and what are adv. and dis-adv.
- How to set the properties of DTS package via asp.net

Any other related links are a good help.

Regards,

Sreedhar Vankayala

Nov 18 '05 #2

P: n/a
Cool. Thanks for the reply and working towards the steps mentioned ...

I have lot of macros in the excel sheet. Currently, I am working on
how to get the data.

Reg. the assemblies, would it cover all the functionality like getting
data out of sheet which has complicated macros ?

Link provided is 2001, wondering if there is a better way in the new
ADO.net, as of today ?

- Sreedhar
"Sarmad Aljazrawi" <anonymous[shylme]@discussions.microsoft.com> wrote in message news:<#6**************@TK2MSFTNGP10.phx.gbl>...
if you are using xp excel, then try Office XP Inerop Assemblies released
by microsoft which help you avoid installing MS excel on the server.

for loading the data into SQL, I'd prefer to batch the data into SQL
directly without creating any DTS. Just load the data into a dataAdapter
and then batch it as a whole into SQL.

this may help you
http://msdn.microsoft.com/library/en...82001.asp?fram
e=true
hope this would help you.

--
Sarmad Aljazrawi
B.Sc. Computer Science, MSDBA, MCP
www.aljazrawi.net
"Sreedhar Vankayala" <va*****@yahoo.com> wrote in message
news:7b**************************@posting.google.c om...
Hi,

I joined a project where we need to import data from a excel file into
sql server via the asp.net.

After doing a long research found that
#1. Upload Excel file to the server
#2. Load or keep the Excel file into the memory
#3. Query the excel file and convert into insert queries and execute
them via sql server
or
write a DTS package and use it via asp.net

Where can I find more information,
- Which is the best approach and what are adv. and dis-adv.
- How to set the properties of DTS package via asp.net

Any other related links are a good help.

Regards,

Sreedhar Vankayala

--

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.