当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 在查询分析器里执行下面语句没问题: ------------------------------------ declare @firstdate int select @firstdate=@@datefirst if @firstdate<>1 set datefirst 1 select datepart(dw,getdate()) as numofweek 但写在asp......
 ·fastreport問題    »显示摘要«
    摘要: 為件麼從51delphi中下的fastreport是測試版的,能放心用嗎? ......


在SQLSERVER2000中,如何得到数据库所在服务器的IP地址,在线等待

在SQLSERVER2000中,如何得到数据库所在服务器的IP地址,在线等待!急急!!!

NO.1   作者: letsflytogether

master..xp_cmdshell   ipconfig

NO.2   作者: happydreamer

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


    摘要: 多谢! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE