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

Commit 233f120

Browse files
authored
Updated branding for Azure Cosmos DB.
1 parent 5b7d635 commit 233f120

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ ms.workload: "Inactive"
5757

5858
|Value|Description|
5959
|-----------|-----------------|
60-
|**0**|Returns the server name converted to NetBIOS format, for example:<br /><br /> `\\SERVERNAME\MSSQLSERVER\MyDocumentDB`<br /><br /> This is the default value.|
61-
|**1**|Returns the server name without conversion, for example:<br /><br /> `\\ServerName\MSSQLSERVER\MyDocumentDB`|
62-
|**2**|Returns the complete server path, for example:<br /><br /> `\\ServerName.MyDomain.com\MSSQLSERVER\MyDocumentDB`|
60+
|**0**|Returns the server name converted to NetBIOS format, for example:<br /><br /> `\\SERVERNAME\MSSQLSERVER\MyAzureCosmosDB`<br /><br /> This is the default value.|
61+
|**1**|Returns the server name without conversion, for example:<br /><br /> `\\ServerName\MSSQLSERVER\MyAzureCosmosDB`|
62+
|**2**|Returns the complete server path, for example:<br /><br /> `\\ServerName.MyDomain.com\MSSQLSERVER\MyAzureCosmosDB`|
6363

6464
## Return Type
6565
**nvarchar(max)**
@@ -79,7 +79,7 @@ ms.workload: "Inactive"
7979
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.
8080

8181
```sql
82-
USE MyDocumentDB;
82+
USE MyAzureCosmosDB;
8383
@root varchar(100)
8484
SELECT @root = FileTableRootPath();
8585

@@ -98,7 +98,7 @@ WHERE Name = N’document.docx’;
9898
SELECT file_stream.GetFileNamespacePath() AS FilePath FROM DocumentStore
9999
WHERE Name = N’document.docx’;
100100
101-
-- returns “\\MyServer\MSSQLSERVER\MyDocumentDB\MyFileTable\MyDocDirectory\document.docx”
101+
-- returns “\\MyServer\MSSQLSERVER\MyAzureCosmosDB\MyFileTable\MyDocDirectory\document.docx”
102102
SELECT file_stream.GetFileNamespacePath(1, Null) AS FilePath FROM DocumentStore
103103
WHERE Name = N’document.docx’;
104104
```

0 commit comments

Comments
 (0)