SQL Server 2005 – Single User

sqlserverLOGO

Para pasar la base de datos, de un estado a otro.

ALTER DATABASE [Works] SET MULTI_USER WITH NO_WAIT
ALTER DATABASE [Works] SET SINGLE_USER WITH NO_WAIT

EXEC sp_dboption 'Works', 'single user', 'false'
EXEC sp_dboption 'Works', 'single user', 'true'

Leave a Reply

Your email address will not be published. Required fields are marked *