select distinct 数据库名=db_name(dbid),操作的用户=loginame
from master..sysprocesses

解决方案 »

  1.   

    Examples
    This example shows the number of login attempts as of the current date and time.SELECT GETDATE() AS 'Today,s Date and Time', 
       @@CONNECTIONS AS 'Login Attempts'Here is the result set:Today's Date and Time              Login Attempts
    ---------------------------        ---------------
    1998-04-09 14:28:46.940            18
      

  2.   

    @@CONNECTIONS
    返回自上次启动 Microsoft® SQL Server™ 以来连接或试图连接的次数。
    楼上的不要误导。
      

  3.   

    这些信息存储在sysprocesses里面
    你"select * from 数据库..sysprocesses"然后自己看看