Title
Create new category
Edit page index title
Edit category
Edit link
Database Configuration Tool
MetaDefender Managed File Transfer systems integrated with a remote Microsoft SQL Server store the database connection in their service configuration. The Database Configuration Tool (SftDatabaseConfigurationTool.exe) lets an administrator change that connection after install — without re-running the installer.
Use it to:
Update the SQL Server login credentials (username and password).
Move the databases to a different SQL Server host or Availability Group listener, or change the port.
Switch between SQL Server authentication and Windows (Integrated) authentication.
Enable or disable connection encryption between the MFT services and SQL Server.
The tool applies the change consistently across all MFT services and the database, validates the new connection before committing, and automatically rolls everything back if anything goes wrong.
The Database Configuration Tool is available for Managed File Transfer installations that use the recommended Microsoft SQL Server integration — with either SQL Server authentication or Windows authentication.
It is not available for installations that use Microsoft SQL Server Express LocalDB.
How it works
When you run the tool it performs the change as a single, safe operation:
Reads and decrypts the current connection from the service configuration.
Validates the new connection — confirms the server is reachable, the
sft_connandsft_datadatabases exist, and the login has the required permissions. (With--dry-runthe tool stops here and changes nothing.)Backs up the configuration files, then stops the MFT services.
Writes the new connection to the three service config files and to the database, and — for Windows authentication — updates the service Log On As accounts.
Restarts the MFT services.
If any step after the services are stopped fails, the tool automatically rolls back to the previous configuration and restarts the services, so a failed change does not leave MFT unable to start. The previous configuration files are also kept in a backup folder (see Logs and backups).
Before you begin
Before using the Database Configuration Tool, create a snapshot of your MFT virtual machine and a full backup of all MFT-related databases.
Run on the MFT server in an elevated Command Prompt or PowerShell (Run as administrator).
Prepare the target SQL Server login. The tool does not create databases, logins, or grant permissions — those must already exist. The login (for Windows authentication, the chosen Windows account) must have, on both the
sft_connandsft_datadatabases:the
db_ownerrole (simplest), orat minimum
db_datareader+db_datawriterandEXECUTEpermission.For Windows authentication, the chosen domain or machine account must also have the Log on as a service right on the MFT host (
secpol.msc→ Local Policies → User Rights Assignment → Log on as a service). The tool checks this up front and refuses to make any change if the right is missing.
There is no need to provide a different or intermediate login when only changing the password of the current account.
The tool validates the new connection before it commits anything and rolls back automatically on failure, so updating the same login with a new password is safe.
Running the tool
Open an elevated Command Prompt (cmd) or PowerShell.
Navigate to the
Toolsfolder in the installation directory, for example:C:\Program Files\OPSWAT\MetaDefender Managed File Transfer\Tools
Run
SftDatabaseConfigurationTool.exewith the options you want to change:
Command-line options
Option | Description |
|---|---|
| SQL Server name or Availability Group listener address. |
| TCP port (0–65535). |
| SQL Server login (SQL auth), or — with |
| Password for the login above. Always required together with |
| Switch the connection to Windows (Integrated) authentication. Requires |
| Enable or disable TLS encryption between the MFT services and SQL Server. |
| Accept a self-signed/untrusted server certificate for validation only (see Encryption and certificates). |
| Validate the new settings and report what would change, without making any changes. |
| How long to wait for each service to start (default: 300). |
Option rules:
Provide at least one option.
The tool applies partial updates — only the options you supply are changed; everything else is preserved from the current configuration. Options can be combined freely (for example, change the server and the port in one run).
--usernameand--passwordmust always be provided together.--windows-authrequires--password.--usernameis optional with--windows-auth; if omitted, the tool uses the account themftRESTservice currently runs as.Quote passwords that contain shell-special characters such as $, &, ^, %, !, or a backtick. In PowerShell prefer single quotes:
--password 'p@ss$word'; in cmd.exe use double quotes.
Common tasks
Change the SQL login credentials
Move to a different SQL Server or port
Only the server and port change; the existing credentials and other settings are preserved.
Switch to Windows authentication
The tool validates the connection as that account and then sets it as the Log On As account for the mftNext, mftREST, mftProcessor, mftCache, and mftHelper services. (mftNodeManager is intentionally left as LocalSystem.)
Change server or port while staying on Windows authentication
The tool detects that the current configuration uses Windows authentication and preserves it. Because validation must run as the service account, the tool prompts for that account's password if --password is not supplied (input is masked; press Ctrl+C to abort without making changes). Provide --password on the command line to skip the prompt.
Switch back to SQL authentication
The tool reverts the service Log On As accounts back to LocalSystem automatically.
Enable or disable encryption
Validate without changing anything (dry run)
Encryption and certificates
To use encryption (or simply to validate a connection) against a SQL Server that presents a self-signed or otherwise untrusted TLS certificate, the certificate must be trusted by the MFT host:
Install the SQL Server certificate into the Local Computer → Trusted Root Certification Authorities store on the MFT host, then run the tool normally. This is the recommended approach.
Alternatively, pass
--trust-server-certificate trueto accept the certificate for the tool's own validation connection only. This value is not written to the saved connection string — the MFT services do not support it — so it is a per-run option, not a permanent fix.
The tool refuses to connect to a SQL Server whose certificate it cannot validate — even when encryption is disabled, because the login handshake still uses the certificate.
If your server uses a self-signed certificate, either install it into the host's Trusted Root store, or pass --trust-server-certificate true on each run until a trusted certificate is in place.
Troubleshooting
Message | Cause | Fix |
|---|---|---|
| Wrong username/password, the login lacks database access, or the shell mangled a password with special characters. | Verify the credentials and database permissions. Quote the password so the shell passes it through unchanged (PowerShell: single quotes; cmd.exe: double quotes). |
| The login is not in | Add the login to |
The server presented a TLS certificate that this machine does not trust | Self-signed/untrusted SQL Server certificate. | Install the certificate into the host's Trusted Root store, or pass |
| The Windows authentication account lacks the Log on as a service right, or the password is wrong. | Grant the right ( |
A service did not start within the timeout | The first start after a connection change can be slow (TLS handshake + database warm-up). | Re-run with a longer timeout, e.g. |
If a change fails, the tool rolls back to the previous configuration and reports whether the rollback was clean. When the rollback succeeds, MFT continues running on its previous configuration and no further action is needed.
Logs and backups
Tool log:
DatabaseConfigurationTool.log, located in the installation folder underServices\Logs(typicallyC:\Program Files\OPSWAT\MetaDefender Managed File Transfer\Services\Logs). It is collected automatically by the support-package generator.Configuration backups: the previous service configuration files are saved to
C:\ProgramData\OPSWAT\MetaDefender Managed File Transfer\backup\DatabaseConfigurationTool\before each change.