troubleshooting Question

Select table data from a different SQL instance?

Avatar of mmexchange
mmexchange asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
5 Comments1 Solution2663 ViewsLast Modified:
I have a production SQL instance "Host1\SQL1" and a testing SQL instance "Host1\SQL2". I've trying to copy data from the Production SQL instance to the testing SQL instance, like this:
(but it isn't working) What as I missing?
(running SQL from "Host1\SQL2")
UPDATE    PageTemplates
SET              TemplateText =
                          (SELECT     PT1.TemplateText
                            FROM          [Host1\SQL1].MyDB.PageTemplates AS PT1
                            WHERE      (PT1.TemplateID = 1))
WHERE     (TemplateID = 1)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros