Linked server execution source-server

  • I have ServerA and ServerB attached both ways with linked-servers.

    When ServerA executes something like :

    [ServerB].Database.dbo.Stored_Procedure @Parameter

    I want Stored_Procedure to know that ServerA is where the transaction is originating.

    Other than checking that the user is the one defined in the linked-server definition(I am using SQL Server authentication for the linked servers), is there any other way to know the query is originating from another instance/server?

    Thanks!

    CKC

  • Something like @@remserver... but for linked servers.

    @@remserver works fine right now but is to be deprecated in SS2008, so I can't use it.

    I checked MSDN and there is no replacement offered. I assume since there is already a linked server equivalent.

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

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