Update just one field from backup

Posted by justSteve on Stack Overflow See other posts from Stack Overflow or by justSteve
Published on 2010-04-27T19:07:23Z Indexed on 2010/04/27 21:53 UTC
Read the original article Hit count: 222

Filed under:

I'm looking to restore one field from a backup and can't find the syntax for an update statement that can look at 2 different catalogs.

Seems like it should be something fairly close to:

update users set idUserCompany = 
   (select idUserCompany from .myBackup.dbo.users uT) 
where uT.idUser = idUser

© Stack Overflow or respective owner

Related posts about tsql