Was wondering if it was possible to get the mac address of the server using a stored procedure?
I did some searching for a while but found nothing. This is using SQL2008.
DECLARE @IP_Address varchar(20);
DECLARE @mac_Address varchar(20);
SELECT @IP_Address=client_net_address,@mac_Address=net_address
FROM sys.dm_exec_connections c
join sys.sysprocesses p on c.session_id=p.spid
WHERE c.Session_id = @@SPID