Symptom

You start the SAP Business One Setup Wizard or Migration Wizard, and it stops before it connects to your databases. The Migration Wizard shows this message:

Microsoft SQL Server native client was not found on the local machine.

Example

  • Your company databases run on SQL Server 2022.
  • You start the Migration Wizard on a workstation that only has ODBC Driver 17 for SQL Server, the driver for SQL Server 2019.
  • The wizard stops with the message above.
  • You install ODBC Driver 18 for SQL Server on the same workstation. Now the wizard runs.

Why the message is easy to misread

  • It mentions the “native client”, even when the missing driver is actually a Microsoft ODBC Driver for SQL Server.
  • The driver must be on the machine where you run the wizard. Your database server can be set up correctly while the workstation you use has no suitable driver.

When it typically happens

  • After you upgrade SQL Server to a newer version.
  • When you run a wizard on a new or rebuilt machine.
  • At the start of a migration from SQL Server to SAP HANA.

Cause

The Setup Wizard and the Migration Wizard connect to SQL Server through a driver installed on your machine. Each SQL Server version needs one specific driver. If that driver is missing, the wizard cannot connect and stops.

Who is affected

All of the following must apply:

  • You use SAP Business One (all versions) on Microsoft SQL Server, or you are moving from SQL Server to SAP Business One, version for SAP HANA (all versions).
  • Your company databases run on SQL Server 2005 – SQL Server 2022.
  • You run the Setup Wizard or the Migration Wizard.
  • The machine where you run the wizard does not have the right driver for your SQL Server version.

Which driver you need

Look up the driver for your SQL Server version:

SQL Server version

Driver name as shown in Windows

SQL Server 2005

SQL Native Client

SQL Server 2008 and 2008 R2

SQL Server Native Client 10.0

SQL Server 2012 and 2014

SQL Server Native Client 11.0

SQL Server 2016 and 2017

ODBC Driver 13 for SQL Server (version 13.1)

SQL Server 2019

ODBC Driver 17 for SQL Server

SQL Server 2022

ODBC Driver 18 for SQL Server

Only the driver in the table counts. For SQL Server 2022, driver 17 is not enough. For SQL Server 2019, you need driver 17 even if driver 18 is installed.

Step 1: Find your SQL Server version

In SQL Server Management Studio, run this query on the server with your company databases:

SQL
SELECT SERVERPROPERTY('ProductVersion') AS PRODUCT_VERSION,
       SERVERPROPERTY('ProductLevel')   AS PRODUCT_LEVEL,
       SERVERPROPERTY('Edition')        AS EDITION;

The number at the start of PRODUCT_VERSION tells you the version:

Version number starts with

SQL Server version

9

2005

10.0

2008

10.50

2008 R2

11

2012

12

2014

13

2016

14

2017

15

2019

16

2022

Step 2: Check the drivers on the wizard machine

On the machine where you will run the wizard, open PowerShell and run:

PowerShell
Get-OdbcDriver | Where-Object Name -like "*SQL*" | Select-Object Name, Platform

How to read the result

  • The driver from the table is listed: this machine is ready.
  • The driver is not listed: this machine is affected, even if other SQL Server drivers are installed.
  • The check covers only this one machine. Repeat it on every machine where you run a wizard.
  • A listed driver does not guarantee a working connection. If the wizard still fails, check network access, the SQL Server login and the server name you entered.

Prevent the issue on SQL Server 2005 – 2022

At the time of writing, SAP requires the drivers from the table on every machine that runs the Setup Wizard or the Migration Wizard. Do this before each upgrade or migration:

  1. Find your SQL Server version as described in Step 1 above.
  2. Download the matching driver from Microsoft: the Microsoft ODBC Driver for SQL Server for SQL Server 2016 and later, or SQL Server Native Client for SQL Server 2014 and earlier.
  3. Install the driver on every machine where you run a wizard.

To install the ODBC driver without user interaction, for example through software distribution, open a command prompt as administrator in the installer folder and run:

msiexec /i msodbcsql.msi /qn IACCEPTMSODBCSQLLICENSETERMS=YES

Keep in mind:

  • You can install several versions of the ODBC driver side by side. Driver 18 does not replace driver 17, so other applications keep working.
  • Installing the driver does not change SAP Business One or your company databases. To undo it, uninstall the driver in Windows under Settings → Apps.
  • The installers for driver 17 and driver 18 have the same file name, msodbcsql.msi. Check the version in the file properties before you roll it out.
  • SQL Server 2022 no longer includes SQL Server Native Client, and Microsoft no longer supports SQL Server 2005 – 2014. If you still use one of these versions, plan a SQL Server upgrade first.
  • On-premise, you install the driver yourself.
  • With a hosting partner or SAP Business One Cloud, the partner usually runs the wizards on their own machines. Before an upgrade or migration, agree with them who checks the driver.

Confirm the result

  1. Run the Get-OdbcDriver command again. The driver for your SQL Server version should now be listed.
  2. Test the connection. Open ODBC Data Sources (odbcad32.exe), add a test data source with the new driver, connect it to your SQL Server and click Test Data Source. Delete the test data source afterwards.
  3. Start the wizard again. It should get past the database connection step without the native client message.
  4. After the upgrade or migration, log on to SAP Business One, check the version under Help → About SAP Business One, and open the add-ons and reports you use most.