SQL: Update with values from another table

UPDATE Log<br /> SET Username = u.Username, Name = u.Name<br /> FROM Users u<br /> Where u.Id = userid Source: codesnippets.joyent.com

August 13, 2009 · 1 min · 21 words · kenno

SQL Setup error on Vista: SQL Server Setup Failed to compile MOF

I was attempting to install MS SQL Server 2005 Express edition without success on a computer run Windows Vista Business. There was an error message mentioned “…failed to compile the Managed Object Format (MOF)…” I’ve tried about five times with various solutions; still it didn’t fix the problem. As always, I found a working solution when I was about to give up on this installation. The problem was that the WMI repository was corrupted. There are two ways to fix this: one is to reinstall the WMI, and alternatively you can repair it instead. ...

May 13, 2008 · 2 min · 228 words · kenno