在SQLSERVER2000中,如何得到数据库所在服务器的IP地址,在线等待!急急!!!
master..xp_cmdshell ipconfig
declare @str varchar(100)
select @str=PING -a -n 1 -l 1 +Host_Name()
create table #table(id int identity,txt varchar(1000))
insert #table
exec master..xp_cmdshell @str