How to update columns in one table from another table in desparate databases?

How to update columns in one table from another table in desparate databases?
I need to update my itemBackup table column itemdesc2 from data stored in another database (web) which includes my parts table column description.

UPDATE    itemBackup
SET              itemdesc2 = Web.dbo.Parts.Description
WHERE     (Web.dbo.Resale = 'y') AND (Web.dbo.Parts.PartID COLLATE database_default IN
                          (SELECT     item COLLATE database_default
                            FROM         itemBackup))
dawes4000Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TommyTupaCommented:
1. Go to Configuration Manager.
2. Create new SQL Alias to your server e.g. WebServer.
3. Test connection.
4. Go so SQL Server Management Studio and connect to local server.
5. Create Query:

Update itemBackup
Set ItemDesc2 = b.PartsDescription
from itemBackup a
inner join WebServer.DBName.SchemaName.Field b
on a.item = b.partid
where b.Resale = 'Y'

0
TommyTupaCommented:
Oops, not that anyone will notice...but of course this is the correct syntax:
Update itemBackup
Set ItemDesc2 = b.PartsDescription
from itemBackup a
inner join WebServer.DBName.SchemaName.TableName  b
on a.item = b.partid
where b.Resale = 'Y'
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.