|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Get list of connected users on database?Is sp_who what you are looking for?
-- Show quoteMark Graveline mgraveline"at"sqlchallenge.com http://www.sqlchallenge.com Look, Learn, Have Fun & Win -- Database Competitions "Retf" <re***@terra.com.br> wrote in message news:%23LE5mUbrGHA.248@TK2MSFTNGP04.phx.gbl... > Hi All, > > How I get list of users that stay connected on my data base? > > Thanks > Retf wrote:
> Hi All, sp_who or sp_who2> > How I get list of users that stay connected on my data base? > > Thanks HTH Barry Run sp_who and it will show you all the users connected to your SQL Server.
One of the output columns will show you the database name. Alternatively, you could query master..sysprocesses table where dbid = your database id. Show quote "Retf" <re***@terra.com.br> wrote in message news:%23LE5mUbrGHA.248@TK2MSFTNGP04.phx.gbl... > Hi All, > > How I get list of users that stay connected on my data base? > > Thanks > Note that master..sysprocesses also lets you see when the connection
was first made, and when the last batch of commands started. Also be aware that a user may be accessing your database without "using" it. They might have a default of master, for example, but be executing a stored procedure on your database: EXEC yourdb..someproc Roy Harvey Beacon Falls, CT Show quote On Sat, 22 Jul 2006 14:39:49 -0300, "Retf" <re***@terra.com.br> wrote: >Hi All, > >How I get list of users that stay connected on my data base? > >Thanks > |
|||||||||||||||||||||||