When i execute i get the below error:
Server: Msg 5061, Level 16, State 1, Line 2
ALTER DATABASE failed because a lock could not be placed on database 'DBNAME'. Try again later.
Server: Msg 5069, Level 16, State 1, Line 2
ALTER DATABASE statement failed.