About 474,000 results
Open links in new tab
  1. sql server - Store multiple comma separated strings into temp table ...

    Nov 25, 2018 · With SQL-Server 2016+ you can use OPENJSON with a tiny string replacement to transform your CSV strings to a JSON-array: SELECT a.[key] ,a.value AS s1 ,b.value AS s2 …

  2. SQL Server 2016 STRING_SPLIT Function

    May 17, 2017 · SQL Server 2016 introduced a new built-in table-valued function, STRING_SPLIT that splits the provided input string by a specified separation character and returns the output …

  3. SQL Split String: Insert it into a Column on a Table in SQL Server

    Sep 15, 2022 · In this article, I will demonstrate several ways to split the delimited string and insert it in into a column of a table in SQL Server. You can do it using the following methods: Convert …

  4. Converting commas or other delimiters to a Table or List in SQL Server

    Jan 31, 2020 · SQL Server compatibility level 130, and subsequent versions, support a string_split () function to convert delimiter-separated values to rows (table format). For compatibility levels …

  5. STRING_SPLIT() in SQL Server 2016 : Follow-Up #1

    Apr 19, 2016 · STRING_SPLIT is indeed very fast, however also slow as hell when working with temporary table (unless it get fixed in a future build). SELECT f.value INTO #test FROM …

  6. Function to split stringSQLServerCentral Forums

    Jul 10, 2020 · You can preserve order by creating a table with an identity column and then inserting values from string_split() into that table, like this: Create Function …

  7. Split String & Insert Into Table Rows - SQL Server Forums - SQLTeam.com

    Apr 17, 2014 · I need to create a SQL statement to read the string, split it at the "," character, and insert it into individual rows. I also need to insert an ID (the same for all split values). For …

  8. Break down a delimited string into a temporary table

    Jun 1, 2016 · To insert the result of the function to a temporary table, you should use: INSERT INTO #tempTable(data) SELECT data FROM dbo.Split(@Params, '|') s WHERE ID = 1 Using …

  9. Split and convert Comma Separated Delimited String to Table in SQL Server

    Sep 18, 2014 · In this article I will explain with an example, how to split and convert a comma separated / delimited string to a table using Split function in SQL Server 2005, 2008, 2012 and …

  10. sql server - Temp tables streamline query - Database …

    I am trying to get to the Customer table from data in the SiteConfiguration table. I am getting the data and setting it to @AdditionalVoteViewers , which would be a string of emails address. I …

  11. Some results have been removed
Refresh