Make Sql Server Available Only When Connected