sql server - Is it possible to get the mac address using a stored procedure? -
Was it possible to obtain the MAC address of the server using the stored procedure? I searched for a while but found nothing. This is using SQL2008.
Update
Unfortunately the answer that uses the newer-decimation () can return the wrong mac address if the server has VMware.
I think you need to execute a shell command from SQL to get a MAC address Will be. If I miss well, you have to turn on the shell command option before you can use it. After that, you can run "getmac" to retrieve the MAC address list for the interface on the server. You have to work your way through the returned text, but it should not be very difficult.
Comments
Post a Comment