If this is one time job, I'd export the Excel file into a temp table first (using Import/Export wizard, for example) and then do update by joining with that temp table.
Assuming this is a long term or repeated process, I'd suggest adding a little more structure to your file.
Something like
Columns
TableName
PrimaryKeyColumn
PrimaryKeyValue
UpdateColumnName
UpdateColumnValue
Note the UpdateColumnName/Values are repeating.
Though the obvious question is why aren't you just updating the database directly...
Lodlaiden
If [blue]you have problems[/blue], I want [green]source code[/green] AND [green]error messages[/green], none of this [red]"there was an error crap"[/red]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.