WP Data Access supports connections to Microsoft SQL Server over ODBC and JDBC. Please follow the link below to learn how to setup a connection to SQL Server over ODBC or JDBC first.
- ODBC | JDBC setup and installation (read this first)
Tutorial #
Step by step #
- Check prerequisites
- Check architecture
- Install CONNECT storage engine (if not installed)
- Install ODBC or JDBC drivers
- Prepare SQL Server connection (must use SQL Server Authentication)
- Check SQL Server table structure (all data type supported? primary key needed?)
- Use SQL Server in Data Tables
- Use SQL Server in Data Projects (supports data management on the back-end and front-end)
Hey Peter,
Awesome plugin. Will the remote connection functionality work with Microsoft Azure SQL Database? We have the option of choosing between Microsoft Azure SQL Database and Microsoft Azure SQL Server. We prefer to use the Azure SQL Database because less administrative overhead and cost of ownership. Our WordPress database is Percona Server (SSO Sigon) and I don’t believe we have a remote MariaDB database connection setup. Is the remote connection functionality still a viable option for us to connect to Microsoft Azure SQL Database/Server?
Best Regards,
Arslan
Hi Arslan,
That is an interesting question! 🙂 I have never tested with Azure, but ODBC and JDBC are supported by MariaDB and Azure, so it should be possible. Is this something we can pickup together?
Best regards,
Peter
Hi Peter,
Awesome plugin you made.
I’m running this website http://www.inksaneartists.com, and I would love to have it read data from a remote microsoft SQL server db.
My wordpress plugin is using MySql and not MariaDB.
So i’m trying to follow your videotutorial, where you make a gateway to a mariadb first.
But here I’m stuck..
Obviously copying the same data that you put in is not working. Since you are using a personal IP.
Should I first go make a mariadb somewhere else (with my current hosting provider?), and then have WP Data Access connect to that?
Or where can I find the IP that does work for my installation? What am I missing?
Thanks already!
Hi Sandy,
To use your SQL Server tables from your WordPress server, your MariaDB database needs to be reachable from your WordPress server and your SQL Server needs to be reachable from your MariaDB server. The MariaDB server acts as a proxy. Your MariaDB and SQL Server databases will usually be on the public network both, and you need to be able to establish a remote connection.
Hope this helps,
Peter
Hello,
Is this possible to connect to remote SQLite database?
Regards,
Jimmy
Hi Jimmy,
You can use JDBC or ODBC to connect to a remote SQLite database (I have not tested this!). You should carefully read this page before you start:
https://wpdataaccess.com/docs/heterogeneous-connections/odbc-jdbc/
Additionally you need to download the necessary drivers and call them in your table definition.
You can follow the steps as described in the video on this page, you just need to change the connection parameters. The correct parameters should be documented with your driver.
Hope this helps,
Peter
Peter, I also am interested in connecting to a Microsoft SQL Server. Isn’t there a way now to connect directly rather than use MariaDB as a proxy?
Hi Robert,
It is possible to connect directly to SQL Server from WP Data Access, but only if you run MariaDB and have full OS admin access. You can find more information here: https://wpdataaccess.com/docs/remote-database-connections/connect-to-sql-server/
It is generally possible to connect to SQL Server, but our API is MariaDB|MySQL based, the reason why we route through MariaDB. Connecting directly would require DBMS specific classes for each supported DBMS. Maybe something for the far future…
Hope this helps,
Peter