I am looking for a solution using which one can get IP address of sql server. I got some solutions on Net with I need to get the same when the user credentials do not belong to "sysadmin" role.
The folliowing is one of the ways only users of sysadmin role can use it:-
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'xp_cmdshell','1'
GO
RECONFIGURE;
GO
exec master..xp_cmdshell 'ipconfig'
best regards,
SID