SQL Flow Field Guide

TRANSLATE

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

string transform

What changes

Input
string arguments
Output or change
string or integer
Return type
Returns a character expression of the same data type as inputString where characters from the second argument are replaced with the matching characters from third argument.

Syntax at a glance

TRANSLATE ( inputString, characters, translations )

Work example

Replace several individual characters in one pass, such as normalizing punctuation.

Keep the source and replacement character lists aligned by position.

Check your work TRANSLATE maps characters one at a time and does not perform substring replacement.

Practice SQL

Open in SQL Flow
SELECT TRANSLATE('2026/04/05', '/-', '--') AS normalized;

Open Microsoft Learn for full syntax, permissions, and details for your version.