查SQL Lock
select spid,
status,
loginame=rtrim(loginame),
hostname,
blk=convert(char(5),blocked),
dbname=db_name(dbid),
cmd
from master.dbo.sysprocesses
where spid in (select blocked from master.dbo.sysprocesses)
and blocked = 0
--另外, 隨機存取資料的方式
SELECT TOP 10 *
FROM Northwind..Orders
ORDER BY NEWID()
FROM Northwind..Orders
ORDER BY NEWID()
Hi,
亂馬客Blog已移到了 「亂馬客 : Re:從零開始的軟體開發生活」
請大家繼續支持 ^_^