This stored procedure changes the login mode of a SQL2000 or SQL2005 instance to Mixed or Windows depending on the parameter passed in. It wraps a call to xp_instance_regwrite that makes the required registry change. Useful for MSDE 2000 and SQL2005 Express Edition which currently has no graphical management tool.