--- title: "Install SQL Server with SMB fileshare storage | Microsoft Docs" ms.custom: "" ms.date: "09/05/2017" ms.prod: sql ms.reviewer: "" ms.technology: install ms.topic: conceptual ms.assetid: 8b7810b2-637e-46a3-9fe1-d055898ba639 author: MashaMSFT ms.author: mathoma monikerRange: ">=sql-server-2016||=sqlallproducts-allversions" manager: craigg --- # Install SQL Server with SMB fileshare storage [!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md-winonly](../../includes/appliesto-ss-xxxx-xxxx-xxx-md-winonly.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](http://msdn.microsoft.com/library/gg465305.aspx). 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 below UNC path formats are not supported: - Loopback path, e.g., \\\localhost\\..\ or \\\127.0.0.1\\...\ - Administrative shares, e.g., \\\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-sql-server-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="