Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
How to split the string in SQL Query.I need help.Very Urgent.This is String--------------'Maruti/South3/A M Motors_10110DHL'The SQL Query Result like below[Only i want middle string]----------------------------------------------------------South3V.NAGARAJAN
webfred
Master Smack Fu Yak Hacker
8781 Posts
Posted - 2010-08-10 : 03:29:42
selectparsename(replace('Maruti/South3/A M Motors_10110DHL','/','.'),2)No, you're never too old to Yak'n'Roll if you're too young to die.
itnagaraj
Yak Posting Veteran
70 Posts
Posted - 2010-08-10 : 03:36:40
quote:Originally posted by webfred selectparsename(replace('Maruti/South3/A M Motors_10110DHL','/','.'),2)No, you're never too old to Yak'n'Roll if you're too young to die.
Very Thanks Webfred.V.NAGARAJAN
webfred
Master Smack Fu Yak Hacker
8781 Posts
Posted - 2010-08-10 : 04:05:22
welcome No, you're never too old to Yak'n'Roll if you're too young to die.