Using SQL Server, how do I split a string so I can access item x?

Take a string “Hello John Smith”. How can I split the string by space and access the item at index 1 which should return “John”?

46 s
46

Leave a Reply

Your email address will not be published. Required fields are marked *