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

I have an excel file to store about my employee. i want to add all employee information to my Database.To do this, i did as:
1.I imported all employee information to display on DataGridView
2.I can add more employee after i imported in datagridview
3.I want to save all information on DataGridView to my Database.

For Step 1,2 are ok. all data from excel loaded to datagridview and i can add more
For step 3 i don't know how can i do.

Does anybody guide me how to save data from gridview to database?

Thanks

TONY
Posted
Comments
RDBurmon 30-May-12 4:45am    
Are you creating any project that has this task OR you are just creating this small application to transfer data from excel to database and after that you are going to trash this application ? Is it ?
soeun tony 30-May-12 5:57am    
Hi RDBurmon,
My project will do like this in future.

Thanks

TONY
Vedangi 4-Jun-12 1:16am    
You are adding more information of Employee
DataGridView or to excel , If you are adding to DataGridView , then
you can do this :
You can take information from DataGridView to variables and then
using Query , insert all information into Database
Thank You

1 solution

I doing excellent tutorial for this,download here.

http://planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=7492&lngWId=10
 
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