Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to Copy all the data columns in Excel to Sql database . How to do it

Please anybody help for this Problem

Thank you
Posted

Dear it is very simple task

create a new table in your sql database with the same number of fields in the excel
then copy the data from the excel then select the first row in the sql table and paste (Ctrl+V) the sql will parse the pasted data.

i hope i respond to your question if not please reply that to me


thanks
 
Share this answer
 
Comments
devausha 25-Feb-12 0:17am    
Please Studying Clearly my Question Heading
You need to connect with excel sheet by oledb connection string
Select all record by select query .
then you can insert it by following methods
1. Bulk copy
2. by looping + insert Query
 
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