On Tue, 13 Jun 2006 21:57:02 -0700, ae wrote:
Quote:
i couldn't log on to sql server from the client. i then looked at the
database and there was a single user description next to the database name
label. I then closed the server and opened it back up, and the description
disappeared and was then able to login as though nothing had happened. what
would cause this? |
Hi ae,
ALTER DATABASE databasename SET SINGLE_USER
In SQL Server 2005, this statement can only be executed if you have
ALTER permission on the database.
In SQL Server 2000, this statement can only be executed by members of
the sysadmin and dbcreator fixed server roles, and to members of the
db_owner fixed database role.
--
Hugo Kornelis, SQL Server MVP