Comparision of tables in two instances

  • Can u please provide the query plz,

  • I already did

  • getting below error

    Could not find server 'SHH004V' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.

  • If it's a second instance then you should have something in the format

    MYSERVER\INST01.Mydb.dbo.Mytable

    (assuming your linked server is correctly set up.)

  • If i use like "SHH004V\SVR5"

    getting below error.

    Msg 102, Level 15, State 1, Line 3

    Incorrect syntax near '\'.

  • put in square brackets

    [safasd\zasdf]

  • Thanks Thanks ......................... Ton of Thanks.

    Success,

    thank u team, i've started the distributed query without basic knowledge, i tried a lot,

    but ur help make me understand that exactly what it is.

    I've learned many things from SSC Team.

    Proud of you.

Viewing 7 posts - 16 through 21 (of 21 total)

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