Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8919409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:01:09+00:00 2026-06-15T06:01:09+00:00

I have two SQL Server instances on two virtual machines, Test server and Production

  • 0

I have two SQL Server instances on two virtual machines, Test server and Production server.

I need to do an UPDATE to the production server taking data values from test server.

For example :

UPDATE [server_production].dbname.mytable 
SET column1 = [server_test].dbname.mytable.column1

How do I do this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:01:10+00:00Added an answer on June 15, 2026 at 6:01 am

    On your production server, define a Linked Server that points to your test server.

    Then, on your production server you can run a query similar to the following to update your column:

    UPDATE p
        SET column1 = t.column1
    from <dbname>.<schema>.mytable p
    join <TestLinkedServerName>.<dbname>.<schema>.mytable t
        on p.<id> = t.<id>
    

    In the above query, you’ll need to provide values for the placeholders:

    • <dbname> – the name of the prod/test database
    • <schema> – the schema in which the table is defined (typically dbo)
    • <TestLinkedServerName> – the name you’ve given to the linked server
    • <id> – your PK column, or a column that uniquely identifies rows and provides a way to join the two tables
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On a non-production machine, I have two instances of SQL Server 2005. I want
I have configured Service Broker communication between two SQL Server 2008 instances using Windows
Let's say I have two SQL Server databases running on separate machines, call them
I have two servers where I installed SQL Server 2008 Production: RAID 1 on
I have two instances of SQL Server: Server1 (SQL Server 2008) Server2 (SQL Server
I have a SQL Server database with two values I'm interested in: dtime -
I have two named instances of SQL Server 2008 and am trying to set
I have two SQL Server 2005 instances that are geographically separated. Important databases are
I have two instances of SQL Server 2008 Express and one instance of SQL
I have two machines , each one contains SQL Server + different instance/database +

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.