SQL Flow Field Guide

CREATE SYNONYM

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

defines a synonym

What changes

Input
catalog
Output or change
synonym (alias to another object, possibly remote)

Syntax at a glance

CREATE SYNONYM [ schema_name_1. ] synonym_name FOR <object>

Work example

A stable local name must point to a changing database object location.

Review the four-part target, dependency ownership, deployment order, and name-resolution behavior.

Check your work The synonym resolves to the intended target in every deployment environment.

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