Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulate Excel data and Export into SQL Table

Status
Not open for further replies.

qberta1

Programmer
Joined
Apr 27, 2005
Messages
4
Location
US
I have an Excel spreadsheet with several tabs. I am able to pull the data from the different tabs into ASP.NET and manipulate its content into one uniform DataTable.

Now I need to take this data and insert it all into a SQL table.

Is there any easy way of taking Excel data and inserting it all into a SQL table using ASP.NET?

Thanks!

Q.
 
If it's SQL Server probably the fastest option will be DTS or a bulk insert (can't remember who mentioned that one, sorry!).

Other options are to simply loop through each DataRow and run an insert.

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top