How can I compare two values from different Database server?

  • Hi Friends,

    I'm bignners for SQL and wanted to know how to write query for two different Database server.

    I wanted to compair the data between the two different database server.

    E.g.

    There are 3 DB server those are..

    1. Online DB Server

    2. Admin DB server

    3. Local DB server

    Online DB server has updated data information, every weekend Admin DB server requested Data from Online DB server. Online DB Server sends the Data in XML format and then and then admin convert those xml data into sql format and store into Admin DB server.

    Now I need to compair the Data between Local DB and Admin DB.. like

    1. Display all the records from the two tables (count numbers of records)

    2. Is there any data updated? if yes display only updated records with ID.

    Can anybody advise how to write query for that?

    Your help will really apprititate.

    Thanks & Regards,

    Mahesh

  • Hi Stewart,

    Thanks for reply...

    Can you please share example of link server query..?

    Regards,

    Mahesh

  • Ok, I'll try with command and will let you know.

    Thanks again..:-)

  • Thanks Stewart Once again for your precious help..:-)

  • Hi Stewart,

    I did check on the SQL client tool to create a linked server on the LocalDB server, but did not see any option for that.

    Can you please advise how can I achive that?

    Regards,

    Mahesh

  • Thanks a TON Stewart..:-)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply