Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have an application and want to move information from a excel file to sql but the problem is that the structure/columns are not identical, Is there a way to specify to which column to go to when reading it?
Posted
Comments
skydger 8-Oct-12 6:04am    
How does your application load data to SQL server from Excel? There are different ways to load data from Excel or CSV data into SQL server, which one is used in your application?
andilemtshali 8-Oct-12 6:23am    
i used a file uploader to get the file and used SqlBulkCopy to copy to server

1 solution

Hello,

Please see the below link. It might be help you. Here you can map the column as well. So may be you can find the solution.

http://dotnetslackers.com/articles/sql/Importing-MS-Excel-data-to-SQL-Server-2008.aspx[^]

Thanks,
Viprat
 
Share this answer
 

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