服务器换了一块主板后,HIS软件(医院管理软件)sql server 2008 获取不到网卡mac的地址了。
HIS公司说是换了主板 硬件有问题,可是系统都重装了,数据库也重装了。软件是通过数据库获取网卡mac地址老绑定的。现在服务器是不能关机重启,重启之后获取的地址又变了。就要重新注册软件。每重启一次就变一次。急死了
下图是网卡数据,第二张是SQL 获取到的网卡信息。可以看,根本就对不上号啊
14 个解决方案
#1
是查的这个吗 ?
master..sysprocesses
#2
select distinct net_address
from master.dbo.sysprocesses
where program_name like 'SQLAgent%'
and hostname=SERVERPROPERTY('MachineName')
and net_address<>'000000000000'
select distinct net_address
from master.dbo.sysprocesses
where program_name like 'SQLAgent%'
and hostname=SERVERPROPERTY('MachineName')
and net_address<>'000000000000'
select net_address from master..sysprocesses where net_library='lpc' and program_name='SQLAgent - Generic Refresher' or program_name='SQLAgent - Alert Engine';
#7
是查的这个吗 ?
master..sysprocesses
这是his工程师给我的执行语句select net_address from master..sysprocesses where net_library='lpc' and program_name='SQLAgent - Generic Refresher' or program_name='SQLAgent - Alert Engine';
#8
双网卡?连接的是 wifi ?
#9
直接
select distinct(net_address)
from master..sysprocesses
where net_library='lpc'
select distinct net_address
from master.dbo.sysprocesses
where program_name like 'SQLAgent%'
and hostname=SERVERPROPERTY('MachineName')
and net_address<>'000000000000'
select distinct net_address
from master.dbo.sysprocesses
where program_name like 'SQLAgent%'
and hostname=SERVERPROPERTY('MachineName')
and net_address<>'000000000000'
大神 这个语句是什么意思
#5
select distinct net_address
from master.dbo.sysprocesses
where program_name like 'SQLAgent%'
and hostname=SERVERPROPERTY('MachineName')
and net_address<>'000000000000'
大神 这个语句是什么意思
获取物理地址,我的能对上
#6
select distinct net_address
from master.dbo.sysprocesses
where program_name like 'SQLAgent%'
and hostname=SERVERPROPERTY('MachineName')
and net_address<>'000000000000'
select net_address from master..sysprocesses where net_library='lpc' and program_name='SQLAgent - Generic Refresher' or program_name='SQLAgent - Alert Engine';
#7
是查的这个吗 ?
master..sysprocesses
这是his工程师给我的执行语句select net_address from master..sysprocesses where net_library='lpc' and program_name='SQLAgent - Generic Refresher' or program_name='SQLAgent - Alert Engine';
#8
双网卡?连接的是 wifi ?
#9
直接
select distinct(net_address)
from master..sysprocesses
where net_library='lpc'