Installation Considerations for Microsoft SQL Server and Microsoft Dynamics NAV - Dynamics NAV (2024)

  • Article

This topic describes the requirements for installing and configuring Microsoft SQL Server to work with Microsoft Dynamics NAV 2018.

Dynamics NAV can run on Microsoft SQL Server and Microsoft Azure SQL Database. For a list of supported editions of SQL Server, see Microsoft Dynamics NAV Database Components for SQL Server Requirements.

Using Microsoft SQL Server

Storage

Use different disks or disk partitions for the following:

  • Windows operating system.
  • Data files for the system databases.
  • Log files for system and user databases.
  • Data and log files for the TempDB database.

For optimal read/write performance, make sure that disks that are used for SQL Server data files are formatted using 64 KB block size.

Virus scanning

To help you decide which kind of antivirus software to use on the computers that are running Microsoft SQL Server in your environment, see How to choose antivirus software to run on computers that are running SQL Server.

Memory

For optimal read performance, maximize the available memory on the server according to the version and edition of SQL Server used. Refer to the SQL Server documentation for maximum values.

SQL Server Components

If you are installing Microsoft SQL Server for use with Dynamics NAV, then install the following components:

  • Database Engine Services
  • Client Tools Connectivity
  • Management Tools - Complete

Setup Options for Microsoft SQL Server

When you are running Microsoft SQL Server Setup, you must provide additional information. Your responses can affect how you use SQL Server with Dynamics NAV.

TempDB database configuration

For servers with less than 8 cores, create as many data files for the TempDB database as the number of cores. For servers with more than 8 cores, start with 8 data files, and increment with 4 files at a time, if needed.

Make sure that all data files for the TempDB database are of the same size.

Consider putting data and log files for TempDB on a local SSD drive if you are using SAN storage.

Data file and log file configuration

Auto-growth of the database and/or transaction log files in production can degrade performance as all transaction must queue up and wait for SQL Server to grow the file before it can begin to process transactions again. This can create bottlenecks. We strongly recommend growing data and log files during off-peak periods and by 10% to 25% of the current size. We do not recommend disabling “Auto-Grow”, as in an emergency it is still better to have SQL Server to auto-grow files than to run out of disk space and bring the database down.

Max degree of parallelism (MAXDOP)

The SQL queries generated by Dynamics NAV is of OLTP type (many, small transactions). It is therefore recommended to run Dynamics NAV with MAXDOP set to the value 1.

On SQL Server 2014, MAXDOP can only be set on the instance level, changing an advanced server configuration option.On SQL Server 2016, MAXDOP can be set on the database level, changing a database scoped configuration.

Both advanced server configuration options and database scoped configurations can be set by using SQL Server Management Studio, see the SQL Server documentation for details.

NOTEIf you are running SQL Server Enterprise Edition, index maintenance can be done in parallel. If you run maintenance jobs to do this work in off-peak hours, you might want to set MAXDOP back to 0 while running these jobs. On SQL Server 2016, it is possible to set MAXDOP directly in the Rebuild Index Task wizard.

Instance Configuration

If you plan on installing the Dynamics NAV Demo database, and you want Dynamics NAV Setup to use an already installed version of SQL Server (and not to install SQL Server Express), you must create a SQL Server instance named NAVDEMO in SQL Server before you run Setup. Otherwise, Setup will install SQL Server Express automatically, even if there is a valid version of SQL Server already on the computer. If you do not plan to install the Demo database, or if you have no objection to using SQL Server Express, you are free to use the default instance and Instance ID on the Instance Configuration page, or to specify any instance name.

Database Engine Service

Each SQL Server instance is run by its own windows service. The following two things are important to configure for these services

Startup Options

Enable trace flags 1117 and 1118 as startup options for SQL Server 2014. For SQL Server 2016, these trace flags are enabled by default.

Startup options can be set by using SQL Server Configuration Manager, see the SQL Server documentation for details.

Service account

We recommend that you use dedicated domain user accounts for the Windows services running your Microsoft Dynamics NAV Server instances and your SQL Server instances, instead of a Local System account or the Network Service account.

The Microsoft Dynamics NAV Server account must have privileges on the SQL Server instances and on the Dynamics NAV database(s). See Provisioning the Microsoft Dynamics NAV Server Account for details.

For installations on SQL Server 2014, consider adding the service account for then SQL Server engine to the Perform Volume Maintenance Tasks security policy. For SQL Server 2016, it is possible to do this from the installer.

Database configurations

After Dynamics NAV has been installed, it is important to check a few settings on the Dynamics NAV database(s). This is especially important for databases, which have been upgraded from previous versions of SQL Server.

Statistics

The databases used by Dynamics NAV should have set the options AUTO_CREATE_STATISTICS and AUTO_UPDATE_STATISTICS to the value ON (this is the default behavior and should not be changed)

SQL Server (2014 and earlier) uses a threshold based on the percent of rows changed before triggering an update of the statistics for a table regardless of the number of rows in the table. It is possible to change this behaviour by setting trace flag 2371 as a startup option for the instance. See Knowledge Base article ID 2754171, https://support.microsoft.com/en-gb/help/2754171/controlling-autostat-auto-update-statistics-behavior-in-sql-server for more information about when to set this trace flag.

SQL Server (starting with 2016 and under the compatibility level 130) uses a threshold that adjusts according to the number of rows in the table. With this change, statistics on large tables will be updated more often.

Even with "Auto Update Statistics" enabled, we still strongly recommend running a periodic SQL Agent job to update statistics. This is because "Auto Update Statistics" will only be triggered according to the rules described above. On large tables with tens of millions of records (such as Value Entry, Item Ledger Entry and G/L Entry), a small percentage of data in a given statistic such as [Entry No.] can change and have a material effect on the overall data distribution in that statistic. This can cause inefficient query plans, resulting in degraded query performance until any threshold is reached. We recommend using the T-SQL procedure "sp_updatestats" to update statistics, as it will only update statistics where data has been changed. We recommend creating a SQL Agent Job that runs daily or weekly (depending on transaction volume) during off-peak hours to update all statistics where data has changed.

Other database options

We recommend to set the database option PAGE_VERIFY to the value CHECKSUM for all databases (including TEMPDB) as this is the most robust method of detecting physical database corruption. This is the default setting for new installations.

Backup

Do remember to setup backup of both system and user databases. Remember also to test restore procedures regularly.

Using Microsoft Azure SQL Database

You can deploy a Dynamics NAV database to Azure SQL Database. Azure SQL Database is a cloud service that provides data storage as a part of the Azure Services Platform.

To optimize performance, we recommend that the Microsoft Dynamics NAV Server instance that connects to the database is also deployed on a virtual machine in Azure. Additionally, the virtual machine and SQL Database must be in the same Azure region.

For development and maintenance work on Dynamics NAV applications, if the Microsoft Dynamics NAV Development Environment is installed on the same virtual machine in Azure as the Microsoft Dynamics NAV Server, then you can connect to the Azure SQL database from the development environment.

For more information, see How to: Deploy a Microsoft Dynamics NAV Database to Azure SQL Database.

See Also

Data Access
Configuring Microsoft SQL Server
Troubleshooting: SQL Server Connection Problems
Deployment
Enhancing Microsoft Dynamics NAV Server Security

Installation Considerations for Microsoft SQL Server and Microsoft Dynamics NAV - Dynamics NAV (2024)

FAQs

Installation Considerations for Microsoft SQL Server and Microsoft Dynamics NAV - Dynamics NAV? ›

Firstly, you will need a minimum of 6GB of free space on the disk where you're going to install SQL Server, and if you want to install all the extras, this will rise to 8GB. However, this is just the minimum.

What are the requirements for Dynamics NAV server? ›

Microsoft Dynamics NAV Server Requirements
  • Windows 10 Pro, Enterprise, or Education (64-bit edition).
  • Windows 8.1 Professional or Enterprise (64-bit edition).
  • Windows 8 Professional or Enterprise (64-bit edition).
  • Windows 7 Service Pack 1 Professional, Ultimate, or Enterprise (64-bit edition).

What is the minimum requirement to install SQL Server? ›

Firstly, you will need a minimum of 6GB of free space on the disk where you're going to install SQL Server, and if you want to install all the extras, this will rise to 8GB. However, this is just the minimum.

What are the system requirements for Dynamics NAV 2015? ›

Supported operating systems • Windows 8.1 with Internet Explorer 11 (build 11.0. 9600.17239) (32-bit and 64-bit versions including RT). Additional hardware • 2 GB RAM for Android and Windows. required for placing calls from Microsoft Dynamics NAV.

How do I install Microsoft Dynamics NAV? ›

The Microsoft Dynamics NAV platform can be installed by the following methods:
  1. Use the installation program. Un-install current client or server. ...
  2. Use the ClickOnceInstaller (Web Client and Windows Client only) For more information, see Deploying Microsoft Dynamics NAV Using ClickOnce.

Is Microsoft NAV the same as Microsoft Dynamics? ›

MS Dynamics 365 is only available in the cloud, whereas NAV is available both on-premise and in the cloud. 2. Microsoft Dynamics 365 encompasses a variety of services, whilst MS Dynamics NAV is just an Enterprise Resource Planning (ERP) system.

What are the system requirements for Dynamics NAV 2017? ›

- Windows 10 Pro, Enterprise, or Education (32-bit and 64-bit editions). - Windows 8.1 Professional or Enterprise (32-bit and 64-bit editions). - Windows Server 2012 R2 Standard or Essentials (64-bit edition). - Windows Server 2012 Standard or Essentials (64-bit edition).

How much RAM do I need for SQL Server? ›

A SQL server requires enough memory to cache data requested by users. Some sources recommend at least 4 GB of RAM per SQL instance and more as the size of the SQL database increases. The optimal specs also depend on the percentage of the database that will be used at any given time.

What are the requirements for SQL Server database? ›

SQL Server requires Super-VGA (800x600) or higher resolution monitor. Internet functionality requires Internet access (fees may apply). All other editions: At least 4 GB and should be increased as database size increases to ensure optimal performance. Installation of SQL Server is supported on x64 processors only.

How much RAM is SQL Server using? ›

The median SQL Server has 19% of the data size as RAM. Meaning, if it's hosting 100GB of data, it has 19GB RAM in the server. (Max memory size and file sizes are discussions for another blog post.)

What is Microsoft Dynamics NAV called now? ›

Microsoft Dynamics 365 Business Central (formerly Microsoft Dynamics NAV) – ERP and CRM software-as-a-service product meant for small and mid-sized businesses.

Is Microsoft Dynamics NAV or Navision? ›

Microsoft Navision is the old name for Dynamics NAV (which is now known as Dynamics 365 Business Central!), an ERP system that provides businesses with an end-to-end solution for connecting and managing all processes (such as sales, purchasing, accounting, plus general reporting).

Is Dynamics NAV the same as Navision? ›

At the time of its start, the name was Microsoft Navision, but in 2005, it was rebranded as Microsoft Dynamics NAV. Microsoft rebranded not only Navision but also other ERP products as well. In 2009, it was revamped as compared to the 1995 version.

What is the purpose of Microsoft Dynamics NAV? ›

Microsoft Dynamics NAV

Dynamics NAV is an enterprise resource planning (ERP) app that assists with finance, manufacturing, customer relationship management (CRM), supply chains, analytics, and electronic commerce for small and medium-sized companies and local subsidiaries of large international groups.

How much does it cost to implement Dynamics NAV? ›

Cost of Dynamics NAV on premise

The actual cost will depend on the number of users and type of users you would like to add. The per user cost of NAV will be about $3,000 for users who need full access and $600 for users who need limited access.

What code language does Dynamics NAV use? ›

C/AL is the programming language for Navision / Dynamics NAV. It first started as a DOS application called Navision.

What is the minimum requirements for SQL Server 19? ›

SQL Server 2019 System Requirements

Minimum 1 GB system memory (Standard & Enterprise). Recommended is 4 GB or more. CPU clock speed: x64 1.4 GHz or more. 2.0GHz is recommended.

What are the minimum software requirements to install SQL Server 2016? ›

SQL Server 2016 Requirements
  • 6GB of Disk Space in the NTFS file format.
  • . NET Framework 4.6 or later.
  • 1GB of Memory.
  • 2.0 GHz or faster 64 bit processor.
  • A Compatible Windows Server OS.
Jul 11, 2019

Is 4gb RAM enough for SQL Server? ›

SQL Server is a memory hog. You'd need 32-64 gb minimum, depending on the databases it's handling. I've run into memory problems with 1 database with only 16gb RAM. Set a minimum memory setting too.

What are the minimum software requirements to install SQL Server 2012? ›

Minimum Requirements to Run SQL Server 2012 Express and SQL Server Management Studio
  • Windows 7, Windows Server 2008 R2, Windows Server 2008 Service Pack 2 or Windows Vista (SP2 or later).
  • Internet Explorer 7 or higher. ...
  • For 32-bit systems, 1 GHz Intel or compatible processor (2 GHz or higher recommended).

Top Articles
Latest Posts
Article information

Author: Jerrold Considine

Last Updated:

Views: 5768

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.