issue when Suspende...
 
Notifications
Clear all

issue when Suspended account the database not take offline

2 Posts
2 Users
0 Reactions
988 Views
Posts: 40
Topic starter
(@hamada6004)
Eminent Member
Joined: 6 years ago

hi

Issue when Suspended any account the sql server database not take offline . and user can access it normally

Sql Server 2016 in my case

just what I need

-- Take the Database Offline when Suspended

ALTER  DATABASE  [myDB]  SET  OFFLINE  WITH
ROLLBACK  IMMEDIATE

OR

-- Take the Database Online when make it Active

ALTER  DATABASE  [myDB]  SET  ONLINE

thank you

1 Reply
Posts: 1457
Admin
(@trobinson)
Noble Member
Joined: 9 years ago

Hello,

When you suspend the account the user is removed from the database roles to ensure they have no access.

Regards,

Trevor

Reply
Share: