国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

根據進程號獲取該進程所在客戶端的ip地址

2024-07-21 02:05:41
字體:
來源:轉載
供稿:網友
create procedure dbo.sp_spidtoip @spid int as -- spid to mac -- lj declare @mac as varchar(12) select @mac = net_address from master..sysprocesses where spid = @spid -- mac to ip declare @macdisplay as varchar(18) declare @ip as varchar(15) create table #temp (output varchar(255) null) set nocount on insert into #temp exec master..xp_cmdshell 'arp -a' if @@error begin raiserror ('the level for job_id:%d should be between %d and %d.', 16, 1) --rollback transaction end select @macdisplay = left(@mac, 2) + '-' + substring(@mac, 3, 2) + '-' + substring(@mac, 5, 2) + '-' + substring(@mac, 7, 2) + '-' + substring(@mac, 9, 2) + '-' + substring(@mac, 11, 2)select @ip = substring(output, 3, 15) from #temp where output like '%' + @macdisplay + '%' -- resolve the ip --declare @cmd as varchar(100) --select @cmd = 'master..xp_cmdshell "ping -a ' + @ip + '"' --exec (@cmd) drop table #temp set nocount off go

商業源碼熱門下載www.html.org.cn

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 汝阳县| 确山县| 措美县| 兰溪市| 邛崃市| 汉源县| 安仁县| 洛宁县| 兴海县| 镇平县| 岳阳市| 张家川| 朝阳区| 台南市| 芦溪县| 延津县| 景洪市| 鄂伦春自治旗| 德钦县| 浦东新区| 肇庆市| 丹凤县| 萨迦县| 湖北省| 即墨市| 沁水县| 鄯善县| 双桥区| 卓尼县| 阿坝县| 淳安县| 阿克陶县| 疏勒县| 井冈山市| 黔西| 灵丘县| 家居| 类乌齐县| 富源县| 诸城市| 惠来县|