You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/relational-databases/blob/enable-the-prerequisites-for-filetable.md
+28-28Lines changed: 28 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,31 +50,31 @@ ms.reviewer:
50
50
51
51
### <aname="HowToCheckAccess"></a> How To: Check Whether Non-Transactional Access Is Enabled on Databases
52
52
Query the catalog view [sys.database_filestream_options (Transact-SQL)](../../relational-databases/system-catalog-views/sys-database-filestream-options-transact-sql.md) and check the **non_transacted_access** and **non_transacted_access_desc** columns.
### <aname="HowToNTAccess"></a> How To: Enable Non-Transactional Access at the Database Level
61
61
The available levels of non-transactional access are FULL, READ_ONLY, and OFF.
62
62
63
63
**Specify the level of non-transactional access by using Transact-SQL**
64
-
-When you **create a new database**, call the [CREATE DATABASE (SQL Server Transact-SQL)](../../t-sql/statements/create-database-sql-server-transact-sql.md) statement with the **NON_TRANSACTED_ACCESS** FILESTREAM option.
65
-
66
-
```sql
67
-
CREATEDATABASEdatabase_name
68
-
WITH FILESTREAM ( NON_TRANSACTED_ACCESS = FULL, DIRECTORY_NAME = N'directory_name' )
69
-
```
70
-
71
-
-When you **alter an existing database**, call the [ALTER DATABASE (Transact-SQL)](../../t-sql/statements/alter-database-transact-sql.md) statement with the **NON_TRANSACTED_ACCESS** FILESTREAM option.
72
-
73
-
```sql
74
-
ALTER DATABASE database_name
75
-
SET FILESTREAM ( NON_TRANSACTED_ACCESS = FULL, DIRECTORY_NAME = N'directory_name' )
76
-
```
77
-
64
+
- When you **create a new database**, call the [CREATE DATABASE (SQL Server Transact-SQL)](../../t-sql/statements/create-database-sql-server-transact-sql.md) statement with the **NON_TRANSACTED_ACCESS** FILESTREAM option.
65
+
66
+
```sql
67
+
CREATEDATABASEdatabase_name
68
+
WITH FILESTREAM ( NON_TRANSACTED_ACCESS = FULL, DIRECTORY_NAME = N'directory_name' )
69
+
```
70
+
71
+
- When you **alter an existing database**, call the [ALTER DATABASE (Transact-SQL)](../../t-sql/statements/alter-database-transact-sql.md) statement with the **NON_TRANSACTED_ACCESS** FILESTREAM option.
72
+
73
+
```sql
74
+
ALTERDATABASE database_name
75
+
SET FILESTREAM ( NON_TRANSACTED_ACCESS = FULL, DIRECTORY_NAME = N'directory_name' )
76
+
```
77
+
78
78
**Specify the level of non-transactional access by using SQL Server Management Studio**
79
79
You can specify the level of non-transactional access in the **FILESTREAM Non-transacted Access** field of the **Options** page of the **Database Properties** dialog box. For more information about this dialog box, see [Database Properties (Options Page)](../../relational-databases/databases/database-properties-options-page.md).
80
80
@@ -86,15 +86,15 @@ GO
86
86
### <aname="HowToDirectory"></a> How To: Specify a Directory for FileTables at the Database Level
87
87
The name that you specify must be unique across the instance for database-level directories.
88
88
89
-
**Specify a directory for FileTables by using Transact-SQL**
90
-
-When you **create a new database**, call the [CREATE DATABASE (SQL Server Transact-SQL)](../../t-sql/statements/create-database-sql-server-transact-sql.md) statement with the **DIRECTORY_NAME** FILESTREAM option.
91
-
92
-
```sql
93
-
CREATE DATABASE database_name
94
-
WITH FILESTREAM ( NON_TRANSACTED_ACCESS = FULL, DIRECTORY_NAME = N'directory_name' );
95
-
GO
96
-
```
97
-
89
+
**Specify a directory for FileTables by using Transact-SQL**
90
+
-When you **create a new database**, call the [CREATE DATABASE (SQL Server Transact-SQL)](../../t-sql/statements/create-database-sql-server-transact-sql.md) statement with the **DIRECTORY_NAME** FILESTREAM option.
91
+
92
+
```sql
93
+
CREATEDATABASEdatabase_name
94
+
WITH FILESTREAM ( NON_TRANSACTED_ACCESS = FULL, DIRECTORY_NAME = N'directory_name' );
95
+
GO
96
+
```
97
+
98
98
- When you **alter an existing database**, call the [ALTER DATABASE (Transact-SQL)](../../t-sql/statements/alter-database-transact-sql.md) statement with the **DIRECTORY_NAME** FILESTREAM option. When you use these options to change the directory name, the database must be exclusively locked, with no open file handles.
99
99
100
100
```sql
@@ -145,6 +145,6 @@ GO
145
145
146
146
- When you enable or disable non-transactional access at the database level, the operation does not check whether the directory name has been specified or whether it is unique.
147
147
148
-
- When you drop a database that was enabled for FileTables, the database-level directory and all the directory stuctures of all the FileTables under it are removed.
148
+
- When you drop a database that was enabled for FileTables, the database-level directory and all the directory structures of all the FileTables under it are removed.
0 commit comments