Click here to Skip to main content
15,909,440 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi can any1 plz suggest me, I'm in need to export data from excel sheet to sql database from a predefined path daily 1PM using c#. how to do it?
Posted
Updated 23-Feb-14 18:58pm
v2

1 solution

Hi,

These links should help you.

http://technet.microsoft.com/en-us/library/ms140052.aspx[^]

http://stackoverflow.com/a/3474783/2671089[^]

Write back if you are stuck.

[Please accept/up-vote answers or solutions that work for you to encourage participation]
 
Share this answer
 
Comments
DaisyArun 24-Feb-14 1:09am    
Hi thanks for your Support, But i Need to schedule a task to do this process? let me know how to do it.
CoderPanda 24-Feb-14 1:11am    
Quoting from the same SO discussion...

"...you would have to step through the wizard once manually, to set everything up. Once done, you can save the steps as a SSIS package into SQL Server and have that executed at any given time, by scheduling it in SQL Agent. Works on any machine - 32 or 64 bit - no problem."
DaisyArun 24-Feb-14 1:31am    
Is it possible to import data from Excel sheet to SQL database at scheduled time using c#
CoderPanda 24-Feb-14 1:34am    
Yes, sure, but in that case you will have to write a windows service that runs at scheduled times and reads excel files from the desired location and imports into sql server. This will be certainly more effort than having a SSIS package.
DaisyArun 24-Feb-14 1:35am    
Can you please suggest me how to do that. I'm completely unaware about these concept. Thanks in advance

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