Advertisement

05.27.2008 at 12:22PM PDT, ID: 23436012
[x]
Attachment Details

Select table data from a different SQL instance?

Asked by mmexchange in MS SQL Server, SQL Server 2005

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)Start Free Trial
[+][-]05.27.2008 at 12:36PM PDT, ID: 21654904

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 12:36PM PDT, ID: 21654908

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 12:43PM PDT, ID: 21654973

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 01:12PM PDT, ID: 21655249

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, SQL Server 2005
Sign Up Now!
Solution Provided By: bhess1
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.27.2008 at 01:49PM PDT, ID: 21655577

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628