declare @dbid int
set @dbid=db_id('dbName')
select distinct hostname,
db_name(dbid),
net_address,
loginame,
program_name
from master..sysprocesses 
where hostname!=''and(@dbid is null or dbid=@dbid)

 

查询结果:

 sql 语句查询 sqlserver 数据库 MAC 地址

 

相关文章:

  • 2021-10-11
  • 2022-12-23
  • 2021-10-09
  • 2021-10-06
  • 2022-12-23
  • 2021-12-04
  • 2021-11-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-06-01
  • 2021-08-09
  • 2022-01-07
相关资源
相似解决方案