-
Help in writing a script to deny users access to a database.
I have a database that I want to deny users access to during a specific time of the day e.g. 1:00 AM to 7:AM as I have tables that are updated during this time. Can anyone help me with writing a script/job to deny users access to the database?
-
You can set db option 'dbo use only', but the bad news is set db option doesn't disconnect existing users. Have to find spid of existing connection and kill it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|