T-SQL → PostgreSQL translator

Paste SQL Server code, get the PostgreSQL version — with every change explained and linked to the tutorial that teaches it. An honest assistant, not a magic compiler: what it can't convert safely, it flags for you instead of guessing.

Free API — use it from your own tools

The same engine powers an open API (this page uses it too). No signup, no key — just a rate limit of 60 requests per minute per IP. Perfect for migration scripts and CI checks; for in-process use, tell us and we'll prioritize a NuGet package.

curl

curl -X POST https://www.coder000.com/api/v1/translate \
  -H "Content-Type: application/json" \
  -d '{"sql": "SELECT TOP 5 * FROM dbo.Patients WITH (NOLOCK)"}'

C#

using var http = new HttpClient();
var response = await http.PostAsJsonAsync(
    "https://www.coder000.com/api/v1/translate",
    new { sql = "SELECT TOP 5 * FROM dbo.Patients" });
var result = await response.Content.ReadFromJsonAsync<JsonElement>();
Console.WriteLine(result.GetProperty("translated").GetString());

Python

import requests
r = requests.post("https://www.coder000.com/api/v1/translate",
                  json={"sql": "SELECT TOP 5 * FROM dbo.Patients"})
print(r.json()["translated"])

Response shape: { "translated": "…", "notes": [...], "warnings": [...] } — each note carries a change, an explanation, and a link to the tutorial behind the rule.

Learn the why, not just the what

This tool is the practical companion to our full migration series.