About 371,000 results
Open links in new tab
  1. sql - How do I split a delimited string so I can access individual ...

    Nov 2, 2015 · As of SQL Server 2016, there is now a built-in function STRING_SPLIT that will split a string and return a one-column table result which you can use in a SELECT statement or …

  2. sql server - T-SQL split string - Stack Overflow

    Jun 6, 2012 · I have a SQL Server 2008 R2 column containing a string which I need to split by a comma. I have seen many answers on StackOverflow but none of them works in R2. I have …

  3. sql server - Split function equivalent in T-SQL? - Stack Overflow

    Mar 30, 2009 · 33 You've tagged this SQL Server 2008 but future visitors to this question (using SQL Server 2016+) will likely want to know about STRING_SPLIT. With this new builtin …

  4. 'STRING_SPLIT' is not a recognized built-in function name

    The STRING_SPLIT function is available at compatibility level 130 or higher. If your database compatibility level is lower than 130, SQL Server will not be able to find and execute …

  5. sql - How do I split a string into 2 parts based on a delimiter ...

    10 One option here is to make use of SQL Server's base string functions SUBSTRING() and CHARINDEX() to split apart the two parts of Field1 on the pipe character.

  6. How to split strings in SQL Server - Stack Overflow

    How to split strings in SQL Server Asked 14 years, 5 months ago Modified 6 years ago Viewed 88k times

  7. sql - How to split a comma-separated value to columns - Stack …

    May 14, 2012 · If your database compatibility level is lower than 130, SQL Server will not be able to find and execute the STRING_SPLIT function. You can change a compatibility level of the …

  8. How Do I Split a Delimited String in SQL Server Without Creating a ...

    Here's a user-defined parsing function that enables SQL Server that also performs similarly to the VB "Split" function. Designed for interactive leveraging; for example, to parse data within a …

  9. Custom split function in SQL Server - Stack Overflow

    Dec 3, 2019 · I am trying to create a "split" function in SQL Server that splits a string and gives me the n'th substring, but I just don´t have enough SQL experience to implement it. Ideally I would …

  10. sql server - How do I enable ordinals from the STRING_SPLIT …

    Jan 26, 2022 · I'm trying to use the STRING_SPLIT function in Microsoft SQL Server 2019. The function works, if I only put in two arguments, but since I want to extract a specific element …