Офлайн
USE master
GO
ALTER DATABASE YourDatabaseName
SET OFFLINE WITH ROLLBACK IMMEDIATE
GO
Преминете онлайн
USE master
GO
ALTER DATABASE YourDatabaseName
SET ONLINE
GO
Офлайн
USE master
GO
ALTER DATABASE YourDatabaseName
SET OFFLINE WITH ROLLBACK IMMEDIATE
GO
Преминете онлайн
USE master
GO
ALTER DATABASE YourDatabaseName
SET ONLINE
GO