Re: Check a user is connected to the database or not
From: Francesco Anti (fanti__at__sicosbt.it)
Date: 06/21/05
- Next message: Mark J. McGinty: "Re: SQLServerAgent Service"
- Previous message: Venkat: "Check a user is connected to the database or not"
- In reply to: Venkat: "Check a user is connected to the database or not"
- Next in thread: Hari Prasad: "Re: Check a user is connected to the database or not"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 21 Jun 2005 18:39:03 +0200
EXEC sp_who 'LoginName' ????
Francesco Anti
"Venkat" <tammana@inooga.com> wrote in message
news:O72%23AandFHA.612@TK2MSFTNGP12.phx.gbl...
> Can any one tell me the way to know whether a given user id is
> logged into the sql server or connected to any database or not? I want to
> remove a user if he is not logged into the server or not connected to any
> database.
>
>
>
> Can any one give me the T-Sql statement which solves my
> problem?
>
>
>
> Thanks in advance.
>
>
>
> --
>
> Venkat
>
>
>
- Next message: Mark J. McGinty: "Re: SQLServerAgent Service"
- Previous message: Venkat: "Check a user is connected to the database or not"
- In reply to: Venkat: "Check a user is connected to the database or not"
- Next in thread: Hari Prasad: "Re: Check a user is connected to the database or not"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|