The connection to the SQL server database is in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Fog Creek Software\FogBugz\[your FogBugz install directory]\sConnectionString
How do I alter this to switch between Integrated Security, which uses the FogBugz Windows user account to connect to the database, to SQL Server authentication, in which FogBugz has its own user account in SQL Server?