Help needed

  • hi,

    i have two databases says A and B,A resides in my local machine and B resides in remote machine. I need to write a

    SP to query Db B but it should reside in database A.

    thnx in advance.

    sudheer.






    Regards,
    Sudheer 

    My Blog

  • You will need to set up a linked server (in Enterprise Manager) and then you can query a remote database:

    select *

    from [remote_server].[database_name].[owner].[table_name]

    If you fully qualify it with the remote server name then you can use it as you would any other database.

    Jeremy

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

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