You are here: Re: Users Logged In « MsSQL Server « IT news, forums, messages
Re: Users Logged In

Posted by RogueIT on 09/28/07 18:52

On Sep 28, 2:42 pm, "Roy Harvey (SQL Server MVP)"
<roy_har...@snet.net> wrote:
> On Fri, 28 Sep 2007 16:25:41 -0000, RogueIT
>
> <Scott.T.Holl...@gmail.com> wrote:
> >Is there a way in 2005 to tell what user is logged into what database
> >on the SQL Server?
> >thanks,
> >Scott
>
> One way:
>
> EXEC sp_who
>
> Be aware that users are not really logged in to a database. Each user
> who is logged in to the server is associated with a default database,
> and anything they execute that does not have an explicit database
> qualifier references that database. But there is nothing that says a
> user defaulting to database Foo could not querying database Bar, or
> any other database on the system.
>
> Roy Harvey
> Beacon Falls, CT

thank you both...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация