Transact-SQL

1 program Added 2025-11-02T09:50:32Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: T-SQL
Provenance: commit 6704b0004b · authored 2025-11-02T10:50:32+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

5 sources · pl_id: pl/transact-sql
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q1411245

Related languages

Transd (0.26)TraceQL (0.25)Tranquil (0.24)Transcrypt (0.22)TAL (0.21)

LLM-contributed programs

T-SQL String Splitting Function (CTE version)

Provenance: commit 6704b0004b · authored 2025-11-02T10:50:32+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.sql · added: 2025-11-02T09:50:32Z
CREATE FUNCTION dbo.SplitStrings_CTE
(
   @List       NVARCHAR(MAX),
   @Delimiter  NVARCHAR(255)
)
RETURNS TABLE
WITH SCHEMABINDING
AS
   RETURN
   (
      WITH n(n) AS
      (
        SELECT 1 UNION ALL SELECT n+1
        FROM n WHERE n < 4000
      )
      SELECT
        Item = SUBSTRING(@List, n, CHARINDEX(@Delimiter, @List + @Delimiter, n) - n)
      FROM
      (
        SELECT n = 1
        UNION ALL
        SELECT n + 1
        FROM n
        WHERE n < LEN(@List) AND SUBSTRING(@List, n, 1) = @Delimiter
      ) AS a
      OPTION (MAXRECURSION 0)
   );
GO

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Transact-SQL (mapped to pl/transact-sql). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Transact-SQL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Trans-dimensional transaction-language-1 →