Troubleshooting
To Delete Old Databases
1.Open up Microsoft SQL Server Management Studio.
2.Log in to the instance of Microsoft SQL Server that you’ve been using to create PHDwin databases.
3.On the left you will see the Object explorer, highlight Databases.
4.Press F7 on your keyboard to open the Object Explorer Details.
5.Select all of the PHDwin databases by using CTRL+Click to highlight them all. All databases
created by the application will begin with “Phd”.
6.Right-click on any of the databases you’ve selected and then choose Delete.
Installing Extra Components – Utility
In Build 3.1.17, PHDwinStartup will not be executed by the PHDwin desktop shortcut, rather it is just available as a small utility to help users know which prerequisites are missing in a PHDwin installation. Experience is showing us that it should be run by a user with administrator privileges because the registry is not always readable by standard users.
It checks three prerequisites:
1..NET 4.8.1: This is essential to running the GUI. I expect that the splash screen will not even come up if this is not installed.
2.ODBC 13: This is essential for the EcoEngine. Without this driver, the splash screen may come up, but the EcoEngine won t be able to connect to a database and the splash screen will probably indicate some error.
3.Visual Studio redistributable 2015-2022. It appears that the only component that requires this is the .mdb file (e.g., ARIES) import. The rest of the program seems to run fine without it. There are several versions of this code; I think the essential version is 2015 or later (e.g., 2015-2017). I have modified the PHDwinStartup to reflect this, but versions prior to 2015 (e.g. 2010) will not run.
InstallShield Wizard Error Message
If you are missing any components, they will be listed for review. Click Install to download and install them. (Note: this may require a restart). Once you have restarted your computer, restart the installation by executing the PHDwin_3.1_Setup.exe file again.
To Install Visual C++ Redistributable 
1.Open windows explorer and go to the Downloads folder (or the location that you downloaded the file). Double-click on the file named vc_redist.x64.exe to begin the installation.
2.In the Setup window, check the box to Agree to the terms and conditions and click Install.
To Install the OBDC Driver 13 for SQL Server
1.Open windows explorer and go to the Downloads folder(or the location that you downloaded the file). Double-click on the file named msobdcsql131_x64.msi to begin the installation.
2.In the Setup window, click Next to begin the installation.
3.Accept the terms of the license agreement and click Next.
4.On the Feature Selection page, leave everything as is and click Next.
5.Once the setup is ready, click Install and then Finish.
To Install the SQL Native Client
1.Open windows explorer and go to the Downloads folder(or the location that you downloaded
the file). Double-click on the file named sqlncli_x64.msi to begin the installation.
2.In the Setup window, click Next to begin the installation.
3.Accept the terms of the license agreement and click Next.
4.On the Feature Selection page, leave everything as is and click Next.
5.Once the setup is ready, click Install and then Finish.
6.You will have to restart your computer for the configuration changes to take effect.
Problem – The Server is Not Showing Up When I Try to Log In
If you are trying to log in to PHDwin but nothing is listed under “Server”, even when you click on the Browse button, try following the steps below to verify that SQL Server Browser is running and that you have enabled TCP/IP and Named Pipes.
Solution 1 – Verify that SQL Server Browser is Running Automatically
During the install, you should have set the SQL Server Browser to start automatically. If you didn’t, PHDwin will not be able to see the server as an available option when you try to log in.
To verify that the service is running automatically:
1.Start SQL Server Configuration Manager – Click Start, point to All Programs, and click Microsoft SQL Server. Click Configuration Tools, and then click SQL Server Configuration Manager.
2.In SQL Server Configuration Manager, in the console pane, click on SQL Server Services.
3.In the details pane, look for SQL Server Browser. The Start Mode should be set to Automatic. If it is set to “Other” or “Disabled”, right-click on SQL Server Browser and choose Properties.
4.In the Properties window, go to the Service tab and find the Start Mode. Change this to Automatic and click OK.
5.Right click on the SQL Server Browser and click Restart to apply the changes.
Solution 2 – Enable TCP/IP and Named Pipes
If you installed SQL Server locally on your machine, you can skip this step. If you installed SQL server on a network server and you or other users will need to connect to it, it requires you to enable TCP/IP and Named Pipes connections.
If you installed SQL Server locally on your machine, you can skip this step. If you installed SQL server
on a network server and you or other users will need to connect to it, it requires you to enable
TCP/IP and Named Pipes connections.
1.Start SQL Server Configuration Manager – Click Start, point to All Programs, and click Microsoft SQL Server. Click Configuration Tools, and then click SQL Server Configuration Manager.
2.In SQL Server Configuration Manager, in the console pane, expand SQL Server Network Configuration.
3.In the console pane, click Protocols for <instance_name>.
a.In the details pane, right-click TCP/IP, and then click Enable.
b.In the details pane, right-click Named Pipes, and then click Enable.
4.In the console pane, click SQL Server Services.
a.In the details pane, right-click SQL Server (<instance_name>), and then click Restart, to stop and restart the SQL Server service to apply the changes.
Further troubleshooting
For more information, see the article from Microsoft on “@Troubleshoot connecting to the SQL Server Database Engine”.
Problem – My Login Credentials are Invalid
If you get an error that your login credentials are invalid, make sure to click on “Change Login” so that you can see the details of the server you are logging into.
This error will appear when you are trying to log in using a SQL username and password instead of windows authentication. Make sure that you have typed the password correctly and try to log in again.