ganesh21
2[H]4U
- Joined
- Jan 22, 2006
- Messages
- 2,373
I need to get a part of a string in T-SQL.
Below is are two example of the string.
'\\path123\Imagename\abc123\date\filename.jpg'
'\\path567890\Imagename\abc123\date\filename.jpg'
the result i would like to get for each is:
path123
path567890
i try to use substring but sometime i get only part of the path.
Below is are two example of the string.
'\\path123\Imagename\abc123\date\filename.jpg'
'\\path567890\Imagename\abc123\date\filename.jpg'
the result i would like to get for each is:
path123
path567890
i try to use substring but sometime i get only part of the path.