Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to import execelsheet data into database. code is done by myside but i got an error Conversion failed when converting the nvarchar value 'id' to data type int.
Posted
Comments
Vedat Ozan Oner 1-Feb-14 13:02pm    
did you see this? http://support.microsoft.com/kb/321686
Karthik_Mahalingam 1-Feb-14 13:09pm    
post your code.

1 solution

If you are using sql server you can import excel sheet directly with out writing a Single line of code.
Write click on data base -> Tasks-> Importdata.
Click on next and select data source as Microsoft Excel .
Give the file path and click next.
Select sheet to Import and set table name you can set data types of columns.
Hope the answer of question..
 
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