How to read / check which server / machine is calling the stored procedure

  • We have multiple application servers hitting the same stored procedure. I want to check in the stored procedure which application server is calling that stored procedure and business logic varies accordingly. How to check that. Please help

  • I'm not sure you can do that - could be wrong and have been before - think I would be looking to get the application name passed into the stored procedure as a parameter by the app itself...

  • doh !!! brain not woken up properly today...

    should be able to use

    select host_name()

  • Thankyou, sir. It helped.

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

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