ALTER LOGIN [sa] WITH PASSWORD='newpassword', CHECK_POLICY=OFF
ALTER LOGIN [sa] ENABLE
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'SoftwareMicrosoftMSSQLServerMSSQLServer', N'LoginMode', REG_DWORD, 2