有没有办法确定从sproc中调用特定存储过程的机器?诸如@@ CallingMachineIP或@@ CallingMachineName等
select hostname from master..sysprocesses where spid=@@SPID
要么
select host_name from sys.dm_exec_sessions where session_id=@@SPID