Click here to Skip to main content
15,900,254 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am working on a project in which i have to upload excel file data to sql server .

the excel file contains above 1 lac records so when i fire a select query it takes
to long that application even gets hanged and it throws a com exception..

Can anyone please help me to get the data from the excel file in dataset .

Further I can upload it to sql server using sql bulk copy.

Regards,
Kishor
Posted
Comments
DaveAuld 15-Nov-11 9:56am    
Have you written some VBA code in the background of the Excel file? How are you establishing the connection to the server and running the query?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900