Click here to Skip to main content
15,886,003 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,
Moving-data-from-excel-to-sql-server and the webservice

Please give me an advice for fulfilling the above task.which would be the proper way for achieving this task with minimal time delay.Can we achieve through Crystal report or SSIS tool or any other method?If it so, can we integrate with MVC4 application project?


Please advice me.

Thanks & Regards,
Soumya
Posted
Comments
Maciej Los 29-Dec-14 8:49am    
What kind of issue do you have? What you mean by " the proper way for achieving this task with minimal time delay"?
soumyaraj 29-Dec-14 10:28am    
if you want to insert about 2000 rows from excel file, also at the same time need to fire a webserivce call and pass the parameter from each rows.Sure normal c# code will not have a proper solution.So we need to achieve with minimum time frame.
Maciej Los 29-Dec-14 11:23am    
Why do you think that "c# code will not have a proper solution"?
It's quite fast with SqlBulkCopy method...
soumyaraj 30-Dec-14 2:15am    
Thank you.It's quite fast with SqlBulkCopy method.But we are worried about the fact that,after inserting each rows in to Db,we need to fire a webserice call for each rows.How could it possible with out much delay?

You can use the SQL Import export Wizard
Here are a link on how to do it
http://www.mssqltips.com/sqlservertutorial/203/simple-way-to-import-data-into-sql-server/[^]
 
Share this answer
 
v2
Comments
Maciej Los 29-Dec-14 11:39am    
Sorry, you're wrong. OP wants to do that programmatically, using c#.
You can use simple methods to copy data from excel sheet to sql server
by using OLEDB/ADODB connection with excel sheet and using any method of bulk insert , bulk copy etc. you can transfer your data to sql server db.
I am confuse in your question you are asking crystal report or ssis
Please elaborate more what do you want to do exactly.
 
Share this answer
 
Comments
soumyaraj 30-Dec-14 3:22am    
Actually we want to register employees via bulk insert from excel file, besides for each entry we need a webserive call for passing relevant Employee information.
Manoj Kumar Choubey 30-Dec-14 4:28am    
Its depend on your web service logic and you need to think logic for both side, web service and data import part.

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