Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > HOW EXCEL GOES INTO DATABASE(MAPPEING)
 

HOW EXCEL GOES INTO DATABASE(MAPPEING)

I have some doubt please help me.

How EXEL data goes into database.

Means I have to write a program (Windows application) How EXEL data goes into database.

Case 1 I have a database which has a table 鈥楧EMAND鈥?/span>

Case 2 and I have to opened the same table 鈥楧EMAND鈥?into excel which has all the column name as in database table 鈥楧EMAND鈥?/span>

Case 3 exemple: I have opened the same database table into excel

Case 4 on click of Demand data should be goes into Database table. We have to consider data type also.

pawan lodwal  Saturday, February 16, 2008 10:51 AM

Hi pawan lodwal,

What do you mean by 鈥淗ow EXEL data goes into database鈥? Did you mean importing data to database from Excel? If so, as far as I know, there are two possible ways to import data to database from Excel.

The first one is to read Excel using OLEDB, ant then using ADO.NET to write the data to database. Here are some samples for your reference.

http://www.codeproject.com/KB/office/excel_using_oledb.aspx

http://www.codeproject.com/KB/database/excel_odbc.aspx

http://www.codeproject.com/KB/database/DBManipulationADONET.aspx

The second way is to use the SQL script to import data to database from Excel. Here is a sample for you reference.

http://www.codeproject.com/KB/reporting-services/ImportDataUsingTSQLScript.aspx

Hope this helps.
Best regards.
Rong-Chun Zhang

Rong-Chun Zhang  Friday, February 22, 2008 3:29 AM

Hi pawan lodwal,

What do you mean by 鈥淗ow EXEL data goes into database鈥? Did you mean importing data to database from Excel? If so, as far as I know, there are two possible ways to import data to database from Excel.

The first one is to read Excel using OLEDB, ant then using ADO.NET to write the data to database. Here are some samples for your reference.

http://www.codeproject.com/KB/office/excel_using_oledb.aspx

http://www.codeproject.com/KB/database/excel_odbc.aspx

http://www.codeproject.com/KB/database/DBManipulationADONET.aspx

The second way is to use the SQL script to import data to database from Excel. Here is a sample for you reference.

http://www.codeproject.com/KB/reporting-services/ImportDataUsingTSQLScript.aspx

Hope this helps.
Best regards.
Rong-Chun Zhang

Rong-Chun Zhang  Friday, February 22, 2008 3:29 AM

You can use google to search for other answers

Custom Search

More Threads

• DataGridViewMaskedTextBox mask won't apply
• Manupulation with DataGrid
• Continuous forms
• Retrieve index value for Listbox
• Binding comboBoxes and TextBoxes on a relation
• Can't Add Rows to Datagridview
• How can I set toolstripbutton as form's accept or cancel button?
• DataGridView date issue
• Datagrid navigation
• DataGridView Combobox ColorPicker