--- title: "Install SQL Server with SMB fileshare storage | Microsoft Docs" 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. ms.custom: - intro-installation ms.date: "09/05/2017" ms.prod: sql ms.reviewer: "" ms.technology: install ms.topic: conceptual ms.assetid: 8b7810b2-637e-46a3-9fe1-d055898ba639 author: rwestMSFT ms.author: randolphwest monikerRange: ">=sql-server-2016" --- # Install SQL Server with SMB fileshare storage [!INCLUDE [SQL Server -Windows Only](../../includes/applies-to-version/sql-windows-only.md)] Starting with [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)], 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: While specifying the SMB file share, the following are supported Universal Naming Convention (UNC) Path formats for standalone and FCI databases: - \\\ServerName\ShareName\ - \\\ServerName\ShareName For more information about Universal Naming Convention, see [UNC](/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) is not supported. As a special case, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] using File Server Cluster which is hosted on the same node [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is running is also not supported. To prevent this situation, it is recommended that [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] and File Server Cluster to be created on separated Windows Clusters. The following UNC path formats are not 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 (SQL Server Transact-SQL)](../../t-sql/statements/create-database-transact-sql.md) 2. [ALTER DATABASE (Transact-SQL)](../../t-sql/statements/alter-database-transact-sql.md) 3. [RESTORE (Transact-SQL)](../../t-sql/statements/restore-statements-transact-sql.md) 4. [BACKUP (Transact-SQL)](../../t-sql/statements/backup-transact-sql.md) ### Installation options - In setup UI "Database Engine Configuration" page, "Data Directories" tab, set the parameter "Data root directory as "\\\fileserver1\share1\". - In command prompt installation, specify the "/INSTALLSQLDATADIR" as "\\\fileserver1\share1\". Here is the sample syntax to install [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] on a Standalone server using SMB file share option: ``` Setup.exe /q /ACTION=Install /FEATURES=SQL /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="" /SQLSVCPASSWORD="" /SQLSYSADMINACCOUNTS="" /AGTSVCACCOUNT="" /AGTSVCPASSWORD="" /INSTALLSQLDATADIR="\\FileServer\Share1\" /IACCEPTSQLSERVERLICENSETERMS ``` 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: ``` 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="