Error: Cannot Connect to Database Login Failed for user DACUser in Accounts Production Advanced
Scenario
You might get the following error message after you install Accounts Production Advanced.
Error message
Cannot Connect to Database Login Failed for user DACUser.
important
We recommend that the solutions in this article should only be carried out by your firm's IT professional.
Before you try the following solutions, you'll need to know which version of Accounts Production Advanced is the current version. Go to the Digita Suite Releases article to check. You can download the latest version from the Product Downloads page.
Solution 1: If you have a new install of the current Accounts Production Advanced
Server install
- Check that the application opens on the server without error.
- Check the application is the same version as in the current Digita Suite release.
- If the application doesn't open on the server, take the following steps.
- Make a backup of the database.
- Go toC:\Program Files (x86)\Digita
- Rename the Accounts Production Advanced folder toAccounts Production Advanced.OLD
- RunDigitaAutoRun.exefrom the Digita Suite release download file and reinstall the application.
- If the application opens and logs in on the server, the problem is that the node installs on the client machines aren't updated.
- On the workstation go to the node setups at:\\<SERVER NAME>\Digita\Accounts Production Advanced\Nodeins
- Runsetup.bat.
- If installing this hasn't fixed the problem, take the following steps.
- Go onto the server and copy theinstaller.msifile fromSuite Download\Content\DAPA.
- Paste this file intoC:\Program Files (x86)\Digita\Accounts Production Advanced\Nodeins\MSI.
- On the workstation, go toNodeinson the server at\\<SERVER NAME>\Digita\Accounts Production Advanced\Nodeins.
- Runsetup.bat.
Standalone install
- Open the application. If it says it's running a version older than the current version, run the installation again.
- If the application shows it's running the current version, go to the program files.noteBy default, these are in:C:\Program Files (x86)\Digita\Accounts Production Advanced
- Run thedatabaseupgrader.exeapplication to upgrade the database, then open the application again.
- If you get an error, uninstall and reinstall the application.
Solution 2: if you've installed any version other than the current one
Option 1
- If you've installed a node installation by runningInstaller.msi, runsetup.batto uninstall then reinstall it.
- If the box disappears or does nothing when you runsetup.bat, take the following steps:
- Opensetup.batinNotepad.
- Make sure network path entries are correct and valid.noteThe default path references the installation files as if the Digita folder is shared and labelledDigita, in accordance with the general installation instructions.
Option 2
If the database upgrade failed and the database is in
Restricted
mode, take the following steps.
- Open SQL Management Studio on the server.
- Right-clickAccounts Production Database, selectProperties, thenChoose Options.
- At the end of the list changeRestrict AccessfromRESTRICTED_USERtoMULTI_USER.
- SelectOK.
note
The application will open and connect to the database.
Option 3
If the user accounts and permissions aren't set up correctly, take the following steps.
- In SQL Server Management Studio, selectNew Query.
- In theDatabasedropdown list, select theAccountsProductiondatabase.
- EnterSecurity, then selectExecute.
- Open the application again.
Option 4
If the
DACUser
account has an incorrect password, take the following steps.
- In SQL Server Management Studio, expand each database and checkDatabases > DATABASE_NAME > Security > Users.
- DeleteDACUserif it exists in each database user list.
- ExpandSecurity, thenLogins.
- DeleteDACUser.
- SelectNew Query, thenAccountsProduction.
- EnterSecurity, then selectExecute.
- Open Accounts Production Advanced again.
Option 5
Make sure you've also updated Accounts Production if you installed it when you updated Accounts Production Advanced.