WP Data Access
  • Download
  • Support
  • Features
  • Pricing
  • Documentation
Select Page
Popular Search formimportquerysqlshortcode

WP Data Access

  • Getting started
  • Installation
  • What’s new?
  • Patches
  • Known limitations
  • FAQ

Data Tables

  • Getting Started
  • Creating and publishing
  • Responsive data tables
  • SEO friendly data tables
  • Adding hyperlinks
  • Extension Manager
  • Style Manager
  • Language settings
  • Styling
    • Style Manager
    • Premium styling
    • Global styling
    • Code Manager Styling
    • Manual styling
    • Styling issues
  • Filters
    • Static filters
    • Interactive filters
      • URL parameters
      • Search Panes
      • Search Builder
      • Search form
      • Advanced search
      • Geolocation search
  • Export & other buttons
    • Export to PDF, CSV, Excel, SQL
    • Print & copy buttons
    • Column selection buttons
    • Custom buttons
  • Advanced features
    • Advanced settings
    • Large tables & performance
    • Progressively SHOW MORE
    • Custom queries
    • Custom Post Types
    • Row grouping
    • Responsive master-detail
    • Master-detail tables
    • Non admin user access
  • Demos & tutorials
    • Demos
    • Tutorials

Data Apps

  • Data Projects
  • Projects and templates
  • Supported Data Types
  • One-To-Many relationships
  • Many-To-Many relationships
  • Registration page
  • Manage table options
  • Shortcode usage
  • Project Templates
    • Project Templates
    • Creating templates
    • Table Settings
    • Relationships
    • List Table
    • Data Entry
    • Reconcile
  • Data Forms
    • Data Forms
    • Overview
    • Project Demo
    • Page Demo
  • Advanced features
    • Adding filters
    • Custom validation
    • Add less/more button
    • User roles
    • Managing roles and users
    • Advanced table options
    • Advanced lookups
    • Front-end toolbar
    • Transfer to other WP site
  • Demos & tutorials
    • Demos
    • Tutorials

Data Explorer

  • Getting started
  • Navigation
  • Explore tables & views
  • Manage tables & views
  • Naming conventions
  • Manage Actions
    • Actions
  • Manage Settings
    • Settings
    • Table Settings
    • Column Settings
    • Search Settings
    • Geolocation Settings
    • Dynamic Hyperlinks
    • Dashboard Menus
  • Data Management
    • Import CSV & SQL files
    • Run SQL script files
    • Data Backup
  • Problems & solutions
    • InnoDB #rows estimation
    • Import file too large
    • Transfer to other WP DB

Remote Databases

  • MySQL | MariaDB
  • Other DBMS
    • Heterogeneous Connections
    • Using ODBC | JDBC
    • Connect to SQL Server
  • Premium Data Services
    • Remote wizard
    • START HERE
    • Errors and messages
    • Limitations
    • Tutorials
    • Remote Databases
      • Remote databases
      • SQL Server
      • PostgreSQL
      • Oracle
      • MariaDB | MySQL
    • Remote Data Files
      • Remote data files
      • CSV files
      • JSON files
      • MS Access
      • XML files
      • Public URL
      • Synchronization
    • Advanced features
      • Performance
      • Indexes

SQL

  • Getting Started
  • Tutorials
  • Visual Query Builder
  • Writing queries
  • Data exchange
  • Stored procedures
  • Database triggers
  • Scheduled queries

Business Intelligence

  • Getting started
  • Dashboards
  • Sharing dashboards
  • Dashboards Widgets
    • Dashboard Widgets
    • Publication Widget
    • Project Widget
    • Chart Widget
    • Custom Code Widget
    • Database Widget
    • Sharing Widgets

Table Design

  • Getting started
  • Introduction
  • Basic mode

Plugin Settings

  • Getting started
  • Plugin
  • Back-end
  • Front-end
  • Dashboard
  • Data Forms
  • Data Tables
  • Data Backup
  • Uninstall
  • Manage Repository
  • Manage Roles
  • System Info

Code

  • Shortcodes
    • Overview
    • wpdataaccess
    • wpdadataproject
    • wpdadataforms
    • wpdadiehard
    • wpdageomap
    • wpdawidget
  • Plugin Variables
    • WordPress user ID in SQL
    • Environment variables
  • Hooks & filters
    • Overview
    • Hooks
      • Overview
      • wpda_add_search_actions
      • wpda_add_search_filter
      • wpda_before_list_table
      • wpda_after_list_table
      • wpda_wpdataaccess_prepare
    • Filters
      • Overview
      • wpda_column_default
      • wpda_before_simple_form
      • wpda_after_simple_form
      • wpda_construct_where_clause
  • API
    • WP Data Access API
    • Remote database access
    • CRUD Example
    • Extensions
      • Alternative search algorithm
      • Alternative buttons extension
  • Code Manager
    • Overview
    • Write code
    • Share(d) code

Connect to SQL Server

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 #

  1. Check prerequisites
  2. Check architecture
  3. Install CONNECT storage engine (if not installed)
  4. Install ODBC or JDBC drivers
  5. Prepare SQL Server connection (must use SQL Server Authentication)
  6. Check SQL Server table structure (all data type supported? primary key needed?)
  7. Use SQL Server in Data Tables
  8. Use SQL Server in Data Projects (supports data management on the back-end and front-end)

Resources #

  • https://docs.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server
  • https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on 2023-01-13
Using ODBC | JDBC

8 Comments

  1. Arslan Arif
    Arslan Arif on 2021-09-28 at 12:15 am

    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

    Reply
    • Peter Schulz
      Peter Schulz on 2021-09-28 at 12:47 pm

      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

      Reply
  2. sandy verfaille
    sandy verfaille on 2022-01-02 at 9:31 pm

    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!

    Reply
    • Peter Schulz
      Peter Schulz on 2022-01-03 at 5:28 pm

      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

      Reply
  3. Jimmy
    Jimmy on 2022-01-31 at 9:29 pm

    Hello,

    Is this possible to connect to remote SQLite database?

    Regards,
    Jimmy

    Reply
    • Peter Schulz
      Peter Schulz on 2022-02-01 at 12:44 pm

      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

      Reply
  4. Robert Jones
    Robert Jones on 2022-12-28 at 11:06 pm

    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?

    Reply
    • Peter Schulz
      Peter Schulz on 2022-12-30 at 1:11 pm

      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

      Reply

Submit a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Tutorial
  • Step by step
  • Resources

Links

Blogs
Tutorials
Demos

Socials

LinkedIn
Twitter

Get in touch

Premium support
Free support forum
Contact us

Resources

WordPress plugin directory
YouTube tutorials

Passionate Programmers B.V. © 2017 - 2023 All rights reserved

IMPORTANT message for free users with version 5.3.9 installed

WP Data Access version 5.3.9 is not seeing new updates in the plugin page. The latest version is currently 5.3.15.

To download the latest update, please follow these steps:

    • Deactivate and delete version 5.3.9. This will NOT delete your data, but if you’re worried, you can also simply deactivate version 5.3.9, and then rename the plugin folder temporarily via FTP.
    • Download the lastest version of WP Data Access from the WordPress plugin directory (click the Download button)
    • Login to your WordPress dashboard
    • Navigate to Plugins > Add New > Upload Plugin
    • Select the zip file for 5.3.15, and then click Install Now.
    • Activate the new version (and delete the old version 5.3.9).

 

Feel free to message us if you encounter any problems during the update.