Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an Excel file to laod into a database, how can i do that in ASP.Net MVC 2
Posted

I think you can directly do it by using Import-export wizart.
for that you need to do
=>Right Click on DataBase ==>Go to Task ==>Go to Import Data==> Choose source as excel and destination as your sql server.

hopes this work for you.
 
Share this answer
 
Comments
JohanZwane 19-Feb-13 2:24am    
Hrushikesh_phapale, i know how to do it like that i want to create an ASP.Net MVC 2 Aplication where a user can select and upload the Excel file thanks
Asim Mahmood 19-Feb-13 2:38am    
for uploading file
http://haacked.com/archive/2010/07/16/uploading-files-with-aspnetmvc.aspx
http://www.mikesdotnetting.com/Article/125/ASP.NET-MVC-Uploading-and-Downloading-Files
 
Share this answer
 
Comments
JohanZwane 19-Feb-13 2:27am    
Could you please explain how a user can select the file using an application and upload the file or click the button to upload the file

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