wpDataTables could not connect to mssql server. mssql said: There was a problem with your SQL connection - could not find driver
I've worked for days trying to get wpDataTables to connect to my MSSQL server. Wordpress is hosted on my own Windows Serer 2019 with PHP version 8.0. I have loaded the ODBC Driver 17 for SQL server and added a System DSN that connects successfully to my SQL server. I have tried adding many different extensions to the php.ini and still can't get anywhere.
For wpDataTables to successfully connect to separate databases, please make sure that you have these drivers installed and enabled on the server where your WordPress site is:
From your response, it seems that ODBC and sqlsrv is installed, but can you please check your info.php file, and see what the PDO section shows? If it's not the same as in the screenshot above, you'll need to install those drivers as well.
Alternately, you can provide me with the separate DB connection's credentials (in a PRIVATE response), so I can try connecting to it. If I'm able to connect to it, it's definitely the drivers causing the issue on your website.
In this case I am the hosing provider. This is my server in my datacenter. I need to know the process for installing these as I've tried everything mentioned in the instructions we both referenced and still the drivers are apparently not "installed". Any guidance you can give is much appreciated.
wpDataTables could not connect to mssql server. mssql said: There was a problem with your SQL connection - could not find driver
I've worked for days trying to get wpDataTables to connect to my MSSQL server. Wordpress is hosted on my own Windows Serer 2019 with PHP version 8.0. I have loaded the ODBC Driver 17 for SQL server and added a System DSN that connects successfully to my SQL server. I have tried adding many different extensions to the php.ini and still can't get anywhere.
extension=php_pdo_sqlsrv_80_nts_x64.dll
extension=php_pdo_sqlsrv_80_ts_x64.dll
extension=php_sqlsrv_80_nts_x64.dll
extension=php_sqlsrv_80_ts_x64.dll
extension=php_odbc.dll
extension=php_pgsql.dll
extension=php_sqlite3.dll
extension=php_mysql.dll
Hello Mike
Thank you for your purchase.
For wpDataTables to successfully connect to separate databases, please make sure that you have these drivers installed and enabled on the server where your WordPress site is:
From your response, it seems that ODBC and sqlsrv is installed, but can you please check your info.php file, and see what the PDO section shows? If it's not the same as in the screenshot above, you'll need to install those drivers as well.
Alternately, you can provide me with the separate DB connection's credentials (in a PRIVATE response), so I can try connecting to it. If I'm able to connect to it, it's definitely the drivers causing the issue on your website.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
I'm running PHP 8.0. It seems this extension is not available anymore and the newer drivers that I'm attempting to load are the replacement.
https://www.php.net/manual/en/ref.pdo-dblib.php
https://docs.microsoft.com/en-us/sql/connect/php/download-drivers-php-sql-server?view=sql-server-ver15
My info.php only shows mysql and sqlite even though I've added the Microsoft extensions mentioned in the 2nd article above to my php.ini file.
I must be missing something on the proper way to install drivers to my server. Is there a guide or something I'm missing?
Hi again Mike
I'm also on PHP 8.0, and these drivers do work for separate DB connections.
I'm not sure on which server you are, but there are different installation methods depending on the server.
Following the instructions you linked: https://docs.microsoft.com/en-us/sql/connect/php/download-drivers-php-sql-server?view=sql-server-ver15 should work fine. You can also reach out to your hosting provider and ask them to install these drivers for PHP 8.0
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
In this case I am the hosing provider. This is my server in my datacenter. I need to know the process for installing these as I've tried everything mentioned in the instructions we both referenced and still the drivers are apparently not "installed". Any guidance you can give is much appreciated.
Hi again Mike
I believe drivers for PHP7.4 would also work, so let's try these. These are commands for Apache:
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
I'm running Windows server (IIS). Do you have a guide in that case?
Sorry, Mike, I don't have instructions for that, as I never used a Windows server.
You can reach out to your hosting provider, they should know how these drivers are installed on the server.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
We actually host this server ourselves in our datacenter. Is there anyone else in your group that may know or a resource you can recommend?
Hi again Mike
Unfortunately, we're all using either Linux or Mac, so we didn't install these drivers on Windows servers.
You can take a look at these pages:
https://www.postgresql.org/download/windows/
https://www.php.net/manual/en/ref.pdo-dblib.php
https://docs.informatica.com/integration-cloud/cloud-data-integration-connectors/h2l/installing-the-jdbc-and-odbc-drivers-for-mysql-connector/installing-the-jdbc-and-odbc-drivers-for-mysql-connector/installing-mysql-odbc-driver/installing-mysql-odbc-driver-on-windows.html
https://docs.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server?view=sql-server-ver15
https://blog.devart.com/installing-odbc-driver-and-creating-data-source-on-windows.html
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables