datetime tune date into pad dynamic cursor money percent sp job isnumeric while over update
FREE TRIAL  SQL 2012 PROGRAMMING  SEARCH
SQL Server Scripts SQL 2005 SQL 2008 Articles
SQL JOBS NEWS FORMAT DEV JOBS
How to terminate orphaned connections?

Schedule the following script in SQL Server Agent at a low usage time e.g. 3 am:

USE master
go
EXEC sp_dboption 'AdventureWorks', 'offline', 'TRUE'
go
EXEC sp_dboption 'AdventureWorks', 'offline', 'FALSE'
go

Related article:

Troubleshooting Orphaned Users

 

Exam Prep 70-461
Exam 70-461