--- title: "Install SQL Server with SMB Fileshare Storage" description: In SQL Server, system databases and Database Engine user databases can be installed with Server Message Block (SMB) file server as a storage option. author: rwestMSFT ms.author: randolphwest ms.date: 06/03/2025 ms.service: sql ms.subservice: install ms.topic: install-set-up-deploy monikerRange: ">=sql-server-2016" ms.custom: - intro-installation - sfi-ropc-blocked --- # Install SQL Server with SMB fileshare storage [!INCLUDE [SQL Server -Windows Only](../../includes/applies-to-version/sql-windows-only.md)] In [!INCLUDE [ssSQL11](../../includes/sssql11-md.md)] and later versions, system databases (`master`, `model`, `msdb`, and `tempdb`), and [!INCLUDE [ssDE](../../includes/ssde-md.md)] user databases can be installed with Server Message Block (SMB) file server as a storage option. This applies to both [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] stand-alone and [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] failover cluster installations (FCI). > [!NOTE] > FILESTREAM is currently not supported on an SMB file share. ## Installation considerations ### SMB fileshare formats When you specify the SMB file share, the following values are supported universal naming convention (UNC) path formats for standalone and FCI databases: - `\\ServerName\ShareName\` - `\\ServerName\ShareName` For more information, see [Universal Naming Convention](/openspecs/windows_protocols/ms-dtyp/62e862f4-2a51-452e-8eeb-dc4ff5ee33cc). The loopback UNC path (a UNC path whose server name is localhost, `127.0.0.1`, or the local machine name) isn't supported. As a special case, [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] with File Server Cluster hosted on the same node as [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] is also not supported. To prevent this situation, you should create [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] and the File Server Cluster on separated Windows Clusters. The following UNC path formats aren't supported: - Loopback path, such as `\\localhost\...\` or `\\127.0.0.1\...\` - Administrative shares, such as `\\servername\x$` - Other UNC path formats like `\\?\x:\` - Mapped network drives ### Supported data definition language (DDL) statements The following [!INCLUDE [tsql](../../includes/tsql-md.md)] DDL statements and database engine stored procedures support SMB file shares: 1. [CREATE DATABASE](../../t-sql/statements/create-database-transact-sql.md) 1. [ALTER DATABASE](../../t-sql/statements/alter-database-transact-sql.md) 1. [RESTORE statements](../../t-sql/statements/restore-statements-transact-sql.md) 1. [BACKUP](../../t-sql/statements/backup-transact-sql.md) ### Installation options - In the setup user interface, on the **Database Engine Configuration** page, on the **Data Directories** tab, set the parameter **Data root directory** as `\\\\`. Replace `` and `` with values from your environment. - In the command prompt installation, specify `/INSTALLSQLDATADIR` as `\\\\`. Here's the sample syntax to install [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] on a standalone server using the SMB file share option: ```cmd Setup.exe /q /ACTION=Install /FEATURES=SQL /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="" /SQLSVCPASSWORD="" /SQLSYSADMINACCOUNTS="" /AGTSVCACCOUNT="" /AGTSVCPASSWORD="" /INSTALLSQLDATADIR="\\FileServer\Share1\" /IACCEPTSQLSERVERLICENSETERMS ``` [!INCLUDE [sql-eula-link](../../includes/sql-eula-link.md)] To install a single-node [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] failover cluster instance with the [!INCLUDE [ssDE](../../includes/ssde-md.md)] and [!INCLUDE [ssASnoversion](../../includes/ssasnoversion-md.md)], default instance: ```cmd setup.exe /q /ACTION=InstallFailoverCluster /InstanceName=MSSQLSERVER /INDICATEPROGRESS /ASSYSADMINACCOUNTS="" /ASDATADIR=:\OLAP\Data /ASLOGDIR=:\OLAP\Log /ASBACKUPDIR=:\OLAP\Backup /ASCONFIGDIR=:\OLAP\Config /ASTEMPDIR=:\OLAP\Temp /FAILOVERCLUSTERDISKS="