I have tried this:If you decide to use a query, you can use code similar to thisUSE MasterGOALTER LOGIN test_must_change WITH PASSWORD = ‘samepassword’GOALTER LOGIN test_must_change WITH CHECK_POLICY = OFF, CHECK_EXPIRATION = OFF;
But it gives me errorMsg 102, Level 15, State 1, Line 1Incorrect syntax near '‘'.Msg 15151, Level 16, State 1, Line 1Cannot alter the login 'MYPASSWORD', because it does not exist or you do not have permission.