I was required to update 40+ tables in our DB; Moran Benisty, our DBA master gave me a cool solution:
SELECT 'update ' + name + ' set SomeColumn = ''SomeValue'' where OtherColumn = ''SomeOtherValueToMatchBy'''FROM sys.objects WHERE name LIKE 'LK_%'
Now all I had to do is copy the results and run them. Sweet !
BTW - use at your own risk. :)
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2009, Oren Ellenbogen
<= Contact me via E-mail
newtelligence dasBlog 2.2.8279.16125