Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I need help about query to update existing table in sql from excel. I have table in sql with data, and I am receiving every week one excel file. In that excel file are data about changes in title, street ... and I need to find a match in sql and update. Can anyone help? Thank's
Posted
Comments
sobingt 27-Feb-12 5:27am    
Dude try this


INSERT INTO TEMPTABLE (name)
SELECT *
FROM OPENROWSET(
'Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;IMEX=1;HDR=NO;DATABASE=C:\test.xls',
'Select * from [Sheet1$]'
);

1 solution

try this link will be helpful:-

16,000,000 results on update sql table from excel

Always search google first.
 
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