Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way to synchronize one field
Message
De
05/03/2012 14:55:02
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01537311
Message ID:
01537315
Vues:
37
>If I understood you correctly now, you can create in your server a linked server to the one that has the correct data, then you can just use it in an update statement, something like
>
>
>update yourDB.yourSchema.YourTable
>set YourField = o.YourField from YourDB.YourSchema.YourTable m
>join  [theOtherServer\theOtherInstance].YourDB.YourSchema.YourTable o on o.pk = m.pk
>
>
>(Assuming the Schemas/Database also match, otherwise adjust as necessary.

I created a linked server. I tested the connection and it works. But, when I type it in the query it does not want to recognize it. I mean the intellisense doesn't kick in. It's like there is something I need to put in front of the linked server name.

In your example, what would be an example of theOtherServer and theOtherInstance?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform