Is it possible to get the mac address using a stored procedure?

前端 未结 6 781
一整个雨季
一整个雨季 2020-12-12 01:07

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.

6条回答
  •  眼角桃花
    2020-12-12 01:28

    I would guess that you'd need to execute a shell command from SQL to get the MAC address. If I recall correctly, you have to turn on the execute shell command option before you can use it. Then, you could run "getmac" to retrieve a list of MAC address for the interfaces on the server. You'd have to work your way through the text returned, but that shouldn't be too hard.

提交回复
热议问题