There is a problem accessing the SQL server

Scenario

You may get one of the following error messages when opening Accounting CS, FileCabinet CS, Practice CS, or Workpapers CS.
Error messages
  • A network-related or instance-specific error occurred while establishing a connection to the SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The remote computer refused the network connection.)
  • An error has occurred while establishing a connection to the server. When connecting to SQL Server 20xx, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
  • SQL Server service has been paused. No new connections will be allowed. To resume the service, use the SQL Computer Manager or the Services application in Control Panel. Login failed for user 'CreativeSolutionsPracticeCsDatabaseOwner'.
  • A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)
  • A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
  • Practice CS firms with Remote Entry enabled:
    Practice CS was able to connect to your database server, but could not find an available Practice CS database to connect to. You will not be able to access Practice CS until a Practice CS database is available.
  • Practice CS firms with Remote Entry enabled:
    Only the remote database will be available to open.

Cause

Communication with the database server (Microsoft SQL Server) is interrupted due to environmental, network, or configuration problems.
important
While our support team may be able to provide some general guidance, we strongly recommend that you consult with a qualified IT professional who is familiar with SQL and your environment to help with resolving this error message.

Solution 1: The SQL server browser service isn't running

  1. At the workstation where the SQL Server instance is installed, select
    Start > Run
    , enter
    services.msc
    in the
    Open
    field, and then select
    OK
    .
  2. In the list of services, double-click
    SQL Server Browser
    .
  3. Verify that the
    Startup type
    is
    Automatic
    and that the
    Service Status
    is
    Started
    .
  4. If the SQL Browser is not started, then select the
    Start
    link to start the service, and then select
    OK
    .
  5. In the list of services, double-click
    SQL Server (<insert server name>)
    and repeat steps 3 and 4 for the SQL Server service.

Solution 2: TCP/IP connections are not enabled for SQL server

  1. At the workstation where the SQL Server instance is installed, open the
    SQL Server Configuration Manager
    .
    For Windows 11, and Server 2012:
    Open the
    Search
    from the Start menu, the Charms bar, or from the
    Run
    window, and then enter the following, depending on the version of SQL Server that you have installed.
    • SQL 2016: SQLServerManager13.msc
    • SQL 2017: SQLServerManager14.msc
    • SQL 2019: SQLServerManager15.msc
    • SQL 2022: SQLServerManager16.msc
  2. Select
    SQL Server 20xx Network Configuration / Protocols for <InstanceName>
    .
  3. Make sure that TCP/IP is enabled. If the status is
    disabled
    , right-click and select
    Enable
    .

Solution 3: Named Pipes are not enabled for SQL server

  1. At the workstation where the SQL Server instance is installed, open the
    SQL Server Configuration Manager
    .
    For Windows 11, and Server 2012:
    Open the
    Search
    from the Start menu, the Charms bar, or from the
    Run
    window, and then enter the following, depending on the version of SQL Server that you have installed.
    • SQL 2016: SQLServerManager13.msc
    • SQL 2017: SQLServerManager14.msc
    • SQL 2019: SQLServerManager15.msc
    • SQL 2022: SQLServerManager16.msc
  2. Select
    SQL Server 20xx Network Configuration / Protocols for <InstanceName>
    .
  3. Make sure that Named Pipes is enabled. If the status is
    disabled
    , right-click and select
    Enable
    .
  4. Select
    SQL Native Client Configuration / Client Protocols
    .
  5. Make sure that
    Named Pipes
    is enabled. If the status is
    disabled
    , right-click and select
    Enable
    .
  6. Stop and restart the SQL Instance and the SQL Browser in either in the SQL Server Services section of the Configuration manager or in Services.msc under the name SQL Server <InstanceName>.

Solution 4: The database server machine is running a firewall

The Microsoft Windows Firewall (and other firewall products) can prevent workstations from connecting to another workstation where the Microsoft Server SQL instance resides. You can temporarily disable the firewall to test this issue, and if you find that running the firewall causes connectivity issues, you can add exceptions for SQL-specific ports and executables.

Solution 5: Restart the SQL server instance

At the SQL Server machine, select
Control Panel > Administrative Tools > Services
. Restart the SQL Server instance that the application uses.
note
  • Stopping and starting the SQL service affects other applications that utilize that database instance.
  • We recommend that you restart the server if you receive an error when you attempt to start or restart the SQL Server instance.
  • Check for additional SQL services to make sure they are also started (the SQL Server Agent service isn't necessary).

Solution 6: Use the IP address instead of the machine name

If you have unreliable Domain Name System (DNS) services in a networked environment, you can replace the machine name in the Datasource.xml file (ZFCDB.DAT for FileCabinet CS) with the IP address of the SQL Server. You can find the datasource.xml file in the
WinCSI\[application name] Data
folder.
Here's how you can find the server's IP address.
  1. Select
    Start > Run
    , enter
    cmd
    in the
    Open
    field, and then select
    OK
    .
  2. In command prompt, enter
    ping <MACHINENAME>
    (or
    ping <MACHINENAME> -4
    for the IPV4 address).
  3. The network response should be the following line of text:
    Pinging MACHINENAME [xxx.xxx.xxx.xxx] with 32 bytes of data
    (where xxx.xxx.xxx.xxx represents the valid IP address for MACHINENAME).
note
Resolving this issue by using the IP address instead of <MACHINENAME> may indicate that the DNS on your network is not functioning properly. Using the IP address should be a temporary solution, as it could negatively affect the performance for network-based applications and services, including those outside of the CS Professional Suite. This issue should be addressed promptly by your qualified IT professional.

Solution 7: Trend Micro-Worry Free Business Security was installed after the application

Don’t uninstall Trend Micro Worry-Free Business Security. Instead, use the following steps to uninstall the application and install a new instance of Microsoft SQL Server.
  1. Select
    Start > Control Panel
    and select
    Programs and Features
    to uninstall the <application name> Shared Files, and the actual application, if it was installed on the server in Step 3 of the installation procedure.
  2. Restart the installation process while present at the SQL server, and then select the option to
    Install a new instance of Microsoft SQL Server Express Edition
    .
  3. When prompted, select a new instance name.
  4. Uninstall and reinstall the desktop setup process on all workstations.
  5. Restore the database to the new SQL instance using a backup previously created in the application, or via another application such as Microsoft SQL Server Management Studio.

Solution 8: A third-party application is interfering with database connectivity

  1. Restart the workstation in
    Safe Mode with Networking
    and retest to see if this issue recurs in this state.
  2. If the application opens without any issues, disable all non-Microsoft services, and then start items using
    MSCONFIG.EXE
    .
  3. Enable a small number of items at a time, and then retest until the specific item that is causing the interference is identified.
  4. Disable and/or uninstall the application, service, or startup item that is causing the issue.

Solution 9: The SQL instance is misconfigured

note
Microsoft SQL Server Management Studio is Microsoft's application for managing and maintaining SQL instances. To complete the following steps, be sure that you have the right version of Management Studio for the SQL instance installed on the database server, as well as a working knowledge of this tool. Contact your qualified IT professional if you need more help.
  1. Open Microsoft SQL Server Management Studio on the SQL server and connect to your instance.
  2. Right-click on the instance name and select
    Properties
    .
  3. Select
    Security
    and make sure that the
    SQL Server and Windows Authentication Mode
    checkbox is marked.
  4. Close out of any open windows.
  5. Open the
    Security
    folder and then the
    Logins
    folder and make sure that the CreativeSolutionsPracticeCSDatabaseOwner is listed (regardless of which application you're using).
  6. If CreativeSolutionsPracticeCSDatabaseOwner is not listed, reinstall the application on the server. During step 2 of the installation, select your existing instance of SQL to create the login.

Solution 10: Disable Microsoft data compression and encryption for SQL files

The SQL database consists of:
  • the ACS_0_FIRM.mdf and ACS_0_FIRM.ldf (for Accounting CS and Workpapers CS)
  • the CSP_<FIRMID>_<FIRM>.mdf and CSP_<FIRMID>_<FIRM>_log.ldf (for Practice CS)
  • the fcs_fcabdatadb.mdf, fcsd_fcabdatadb.mdf, fcs_fcabdatadb_log.LDF, and fcsd_fcabdatadb_log.LDF (for FileCabinet CS)
These files are by default installed to the X:\Program Files\Microsoft SQL Server folder on the server (where
X:\
represents the server's hard drive). These files can't be compressed or encrypted. In Windows Explorer, compressed folders/files appear in blue, and encrypted folders/files appear in green. Follow these steps to turn off compression and/or encryption.
  1. Right-click the
    Program Files
    or
    Program Files (x86)
    folder on the server, and select
    Properties
    .
  2. On the General tab, select the
    Advanced
    button and clear the options to
    Compress contents to save disk space
    and
    Encrypt contents to secure data
    .

Solution 11: Test SQL connectivity outside of the CS Professional Suite

The preceding items represent the known issues and solutions to fix these errors. If you are still receiving errors when connecting to the SQL server after troubleshooting and applying the appropriate fixes, we recommend that you test SQL connectivity outside of the CS Professional Suite application. The following steps use the built-in Microsoft Windows tools—independent of CS Professional Suite applications—to test connectivity between your workstation and the SQL Server.
  1. At the workstation, select
    Start > Control Panel
    .
  2. Select
    Administrative Tools
    , and then
    Data Sources (ODBC)
  3. Select
    Add
    .
  4. Select
    SQL Server
    , and then select
    Finish
    .
  5. Enter a
    Name
    and
    Description
    (anything will do), and then enter the
    Server\Instance
    name of the SQL instance used by the application (for example, ServerName\CREATIVESOLUTION).
  6. Select
    Next
    through the remaining screens in the Setup wizard, and then select
    Finish
    .
    note
    Another screen should display ODBC MS SQL Server Setup.
  7. Select
    Test Data Source
    . If the connection to the SQL server is successful, you are prompted with a message.
  8. Close all the open screens and close Administrative Tools.
important
Failure in the ODBC connection test indicates that the Microsoft Windows workstation couldn’t connect to the Microsoft SQL Server. While this connectivity issue may occur only when running a CS Professional Suite application, the cause indicates that there is an environmental problem outside of the application. For further assistance in troubleshooting this issue on your firm's computers, contact a qualified IT professional who is proficient with SQL Server and your network. When the issue is resolved and the ODBC connection test is successful, the CS Professional Suite applications should also connect and operate normally in your environment.
Microsoft also provides the following SQL Server connectivity troubleshooting in the following topics.

error-icon

error-close