Can I point a SP to a databse on a different server?

  • Hi

    I have databaseA on Server1
    and  databaseB on Server2

    I want my Stored procs on databaseB to [USE] databaseA on Server1

    Is this possible ?

    Thanks

  • Look up Linked Servers.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Yes, create a linked server on server1 to server2 with RPC and RPC out enabled. Depending on how your security is set up you may need to map logins.

  • and choose a security context to run under impersonation of the login account used to access the target server.

    Arshad

Viewing 4 posts - 1 through 3 (of 3 total)

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