• If you know the SPID of that particular user then use DBCC INPUTBUFFER or fn_get_sql as follows:-

    ------------------------------------------------

    DECLARE @HANDLE BINARY(20)

    SELECT @HANDLE = sql_handle from sys.sysprocesses where spid =

    SELECT text FROM ::fn_get_sql(@handle)

    -------------------------------------------------

    to get the text of the query, and then by that text u can know the database. How many user databases are there on that server?