Skip to content

Commit 4b31fd0

Browse files
authored
Merge pull request #12245 from msebolt/patch-88
Update enable-the-prerequisites-for-filetable.md
2 parents b8686c2 + 104c8ab commit 4b31fd0

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

docs/relational-databases/blob/enable-the-prerequisites-for-filetable.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,31 @@ ms.reviewer:
5050

5151
### <a name="HowToCheckAccess"></a> How To: Check Whether Non-Transactional Access Is Enabled on Databases
5252
Query the catalog view [sys.database_filestream_options &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/sys-database-filestream-options-transact-sql.md) and check the **non_transacted_access** and **non_transacted_access_desc** columns.
53-
54-
```sql
53+
54+
```sql
5555
SELECT DB_NAME(database_id), non_transacted_access, non_transacted_access_desc
5656
FROM sys.database_filestream_options;
5757
GO
58-
```
59-
58+
```
59+
6060
### <a name="HowToNTAccess"></a> How To: Enable Non-Transactional Access at the Database Level
6161
The available levels of non-transactional access are FULL, READ_ONLY, and OFF.
6262

6363
**Specify the level of non-transactional access by using Transact-SQL**
64-
- When you **create a new database**, call the [CREATE DATABASE &#40;SQL Server Transact-SQL&#41;](../../t-sql/statements/create-database-sql-server-transact-sql.md) statement with the **NON_TRANSACTED_ACCESS** FILESTREAM option.
65-
66-
```sql
67-
CREATE DATABASE database_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 &#40;Transact-SQL&#41;](../../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 &#40;SQL Server Transact-SQL&#41;](../../t-sql/statements/create-database-sql-server-transact-sql.md) statement with the **NON_TRANSACTED_ACCESS** FILESTREAM option.
65+
66+
```sql
67+
CREATE DATABASE database_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 &#40;Transact-SQL&#41;](../../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+
7878
**Specify the level of non-transactional access by using SQL Server Management Studio**
7979
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 &#40;Options Page&#41;](../../relational-databases/databases/database-properties-options-page.md).
8080

@@ -86,15 +86,15 @@ GO
8686
### <a name="HowToDirectory"></a> How To: Specify a Directory for FileTables at the Database Level
8787
The name that you specify must be unique across the instance for database-level directories.
8888

89-
**Specify a directory for FileTables by using Transact-SQL**
90-
- When you **create a new database**, call the [CREATE DATABASE &#40;SQL Server Transact-SQL&#41;](../../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 &#40;SQL Server Transact-SQL&#41;](../../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+
9898
- When you **alter an existing database**, call the [ALTER DATABASE &#40;Transact-SQL&#41;](../../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.
9999

100100
```sql
@@ -145,6 +145,6 @@ GO
145145

146146
- 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.
147147

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.
149149

150150

0 commit comments

Comments
 (0)