Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 9a98e7c

Browse files
authored
Merge pull request #5266 from mimig1/patch-2
Changed my MyDocumentDB to MyDocumentDatabase
2 parents 99c2e1f + 34f40d9 commit 9a98e7c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

docs/relational-databases/system-functions/filetablerootpath-transact-sql.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ FileTableRootPath ( [ ‘[schema_name.]FileTable_name’ ], @option )
4747

4848
|Value|Description|
4949
|-----------|-----------------|
50-
|**0**|Returns the server name converted to NetBIOS format, for example:<br /><br /> `\\SERVERNAME\MSSQLSERVER\MyDocumentDB`<br /><br /> This is the default value.|
51-
|**1**|Returns the server name without conversion, for example:<br /><br /> `\\ServerName\MSSQLSERVER\MyDocumentDB`|
52-
|**2**|Returns the complete server path, for example:<br /><br /> `\\ServerName.MyDomain.com\MSSQLSERVER\MyDocumentDB`|
50+
|**0**|Returns the server name converted to NetBIOS format, for example:<br /><br /> `\\SERVERNAME\MSSQLSERVER\MyDocumentDatabase`<br /><br /> This is the default value.|
51+
|**1**|Returns the server name without conversion, for example:<br /><br /> `\\ServerName\MSSQLSERVER\MyDocumentDatabase`|
52+
|**2**|Returns the complete server path, for example:<br /><br /> `\\ServerName.MyDomain.com\MSSQLSERVER\MyDocumentDatabase`|
5353

5454
## Return Type
5555
**nvarchar(4000)**
@@ -71,7 +71,7 @@ FileTableRootPath ( [ ‘[schema_name.]FileTable_name’ ], @option )
7171
To keep code and applications independent of the current computer and database, avoid writing code that relies on absolute file paths. Instead, get the complete path for a file at run time by using the **FileTableRootPath** and **GetFileNamespacePath** functions together, as shown in the following example. By default, the **GetFileNamespacePath** function returns the relative path of the file under the root path for the database.
7272

7373
```sql
74-
USE MyDocumentDB;
74+
USE MyDocumentDatabase;
7575

7676
@root varchar(100)
7777
SELECT @root = FileTableRootPath();
@@ -95,14 +95,14 @@ WHERE Name = N’document.docx’;
9595
The following examples show how to call the **FileTableRootPath** function.
9696

9797
```
98-
USE MyDocumentDB;
99-
-- returns “\\MYSERVER\MSSQLSERVER\MyDocumentDB
98+
USE MyDocumentDatabase;
99+
-- returns “\\MYSERVER\MSSQLSERVER\MyDocumentDatabase
100100
SELECT FileTableRootPath();
101101
102-
-- returns “\\MYSERVER\MSSQLSERVER\MyDocumentDB\MyFileTable”
102+
-- returns “\\MYSERVER\MSSQLSERVER\MyDocumentDatabase\MyFileTable”
103103
SELECT FileTableRootPath(N'dbo.MyFileTable');
104104
105-
-- returns “\\MYSERVER\MSSQLSERVER\MyDocumentDB\MyFileTable”
105+
-- returns “\\MYSERVER\MSSQLSERVER\MyDocumentDatabase\MyFileTable”
106106
SELECT FileTableRootPath(N'MyFileTable');
107107
```
108108

0 commit comments

Comments
 (0)