Home Forums SQL Server 7,2000 SQL Server Newbies how to get IP address from sql server 2000 RE: how to get IP address from sql server 2000
base128grep
Valued Member
Points: 53
More actions
November 1, 2010 at 6:58 pm
#1245162
Thanks Barry,
You pointed me in the right direction, in regards to sQL2000 I was able to use:
xp_CmdShell 'ipconfig|find "IP Address"'
I had to insert the output into a table variable and use RIGHT(Rtrim(ipaddr),15) to get just the "IP Address"