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/system-functions/getfilenamespacepath-transact-sql.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,9 +57,9 @@ ms.workload: "Inactive"
57
57
58
58
|Value|Description|
59
59
|-----------|-----------------|
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`|
63
63
64
64
## Return Type
65
65
**nvarchar(max)**
@@ -79,7 +79,7 @@ ms.workload: "Inactive"
79
79
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.
80
80
81
81
```sql
82
-
USE MyDocumentDB;
82
+
USE MyAzureCosmosDB;
83
83
@root varchar(100)
84
84
SELECT @root = FileTableRootPath();
85
85
@@ -98,7 +98,7 @@ WHERE Name = N’document.docx’;
98
98
SELECT file_stream.GetFileNamespacePath() AS FilePath FROM DocumentStore
0 commit comments