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 elsewhere.

  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 made sure 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 function you can …

  4. 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.

  5. '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 STRING_SPLIT …

  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 - Split CSV into multiple rows - Stack Overflow

    I'm using the split function from this SQL Team thread (second post) and the following queries. --This query converts the interests field from text to varchar select cp.id ,cast(cp.interest...

  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 Stored …

  9. sql - How to split a comma-separated value to columns - Stack Overflow

    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 database …

  10. trim and string_split don't work in SQL Server? - Stack Overflow

    Jun 21, 2019 · It's not about SSMS, it's about SQL Server version. STRING_SPLIT() is starting with 2016, and TRIM() function starting with 2017, so you need SQL Server 2017 to use both. It doesn't …