AuditWizard - Administration - General - Manually Changing SQL Connection
From Layton Support
Contents |
Overview
It is recommended that you use the Change Database Wizard to change the connection to a different SQL database, however, if you can't launch the application, these techniques can be used to manually reconfigure the SQL connection.
Database Type
Reconnect to SQL Compact Database
If for any reason you wanted to reconnect to the built-in SQL Compact database after migrating to SQL Server, the connection must be established manually. It is assumed that you would not want to return to using SQL Compact after migration, so this procedure would only be used in rare cases.
- Navigate to the following location:
C:\Program Files\AuditWizard v8\
(32 Bit)C:\Program Files (x86)\AuditWizard v8\
(64 Bit) - Open the file AuditWizardv8.exe.config in Notepad.
- Find the string CompactDatabaseType. This tag is a boolean value for whether the SQL Compact or a SQL Server database is used. Simply changing it to True will ignore the SQL Server details below it.
- Change the string in the value tag to True.
- Save and close the configuration file.
- Launch AuditWizard.
Connect to SQL Server Database
Note
There are some caveats with this procedure:
- The password for a SQL user is encrypted, and you won't be able to enter it, so you will have to use the Windows authentication method.
- The Windows account you are using to run AuditWizard will have to have the Database Role Membership db_owner .
Procedure
- Navigate to the following location:
C:\Program Files\AuditWizard v8\
(32 Bit)C:\Program Files (x86)\AuditWizard v8\
(64 Bit) - Open the file AuditWizardv8.exe.config in Notepad.
- Find the string ConnectionStringExpressDataSource. This is the tag for the SQL Server name, including instance name, if applicable.
- Correct the SQL Server name in the value tag, if necessary.
- Find the string ConnectionStringExpressInitialCatalog. This is the SQL database name.
- Correct the SQL database name in the value tag, if necessary.
- Find the string ConnectionStringExpressIntegratedSecurity. This indicates which authentication method will be used, either Windows NT or SQL Server.
- Ensure that the value tag is True. This means Windows NT.
- Save and close the configuration file.
- Launch AuditWizard.