Skip to content

Commit 8a43d8a

Browse files
committed
Added Path_Combine article
1 parent ef3e5ba commit 8a43d8a

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Path_Combine
2+
3+
`Path_Combine` combines two strings into a path.
4+
5+
```csharp
6+
Path_Combine (
7+
@path1 NVARCHAR (4000),
8+
@path2 NVARCHAR (4000)
9+
)
10+
RETURNS NVARCHAR (4000)
11+
```
12+
13+
## Parameters
14+
15+
- **path1**: The first path to combine.
16+
- **path2**: The second path to combine.
17+
18+
## Returns
19+
20+
- The combined paths. If one of the specified paths is a zero-length string, this method returns the other path. If `path2` contains an absolute path, this method returns `path2`.
21+
22+
## Example
23+
24+
```csharp
25+
SELECT SQLNET::Path_Combine('C:\Temp\', 'MyTest.txt')
26+
```

docs2/pages/documentations/path/path.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Performs operations on string instances that contain file or directory path info
55
| Name | Description | Example |
66
| :--- | :---------- | :------ |
77
| [Path_ChangeExtension(path, extension)](/path-change-extension) | Changes the extension of a path string. | [Try it]()|
8+
| [Path_Combine(path1, path2)](/path-combine) | Combines two strings into a path. | [Try it]()|

0 commit comments

Comments
 (0)