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

    Nov 2, 2015 · 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 …

  2. 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, 1 month ago Viewed 88k times

  3. 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 …

  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. sql - How to split a comma-separated value to columns - Stack …

    May 14, 2012 · STRING_SPLIT() is only really useful in SQL Server 2022 and above with the use of the enable_ordinal = 1 option. The STRING_SPLIT() results can then be used with a PIVOT …

  6. STRING_SPLIT in SQL Server 2012 - Stack Overflow

    Oct 24, 2017 · I use STRING_SPLIT in the function I created to give me the package name from a job step's command, and it blew up when I moved to my 2012 server. So I wrote my own.

  7. sql server - ¿Alternativa a la función STRING_SPLIT, para separar ...

    Estoy usando la función STRING_SPLIT para generar filas de un valor escalar @ValueDatos VARCHAR(512) = "Uno, Dos, Tres" de la siguiente manera En mi base de …

  8. Using STRING_SPLIT in SQL for delimited values - Stack Overflow

    Jun 10, 2020 · Using STRING_SPLIT in SQL for delimited values Asked 5 years, 6 months ago Modified 5 years, 6 months ago Viewed 8k times

  9. 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 …

  10. sql - Can we split a string using STRING_SPLIT () in WHERE clause …

    Mar 9, 2021 · I have two tables. Can we split a string using STRING_SPLIT() in WHERE clause to compare the same with more than one value? It will be more clear with my query. Please …