Look at FAQ183-4107. There is an undocumented procedure that lets you run upto three commands against every database or table. Just use the sp_MSForEachTable command. It should run a command something like:
UPDATE ?
SET x = x + '-E'
In MSForEachTable, the ? is replaced with each table name.
Spreadsheet has 2 columns: A = xnum and B = xnum + -E.
Database has a field in various tables called pnum. I need to update pnum with all xnum from column A = pnum in db then add -E on it.
I hope you are not as confused as I am..............
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.