Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

i have a database and lot of tables.
I want to insert and update the data of sql from excel. I can retrieve the data from sql to excel. But i have to send the data back to sql with the changes if any, from excel sheet.

This is my problem.

Can you help any one to solve this problem.

Thanks in advance.

Thiru.
Posted

Thiru i have a solution. you can create command in excel file by using concatenate formula in excel sheet. i am given you a example

Suppose you have a excel sheet and fields are in separate cell

itemcode itemname price command
100 tea 100 insert into table_name
(itemcode,itemname,price) values(


then you concatenate these cells in a cell then one cell will put command with values and then drag cells for populate all cells. now copy all rows of command in sql server and run query. so by this process you can easily inserted or deleted or updated records.


Thanks
 
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