SQL Flow Field Guide

ALTER EXTERNAL MODEL

Catalog support for SQL Server 2025 (17.x)

changes an external model used by AI_GENERATE_EMBEDDINGS

What changes

Input
catalog
Output or change
external AI model definition (endpoint location, API format, credential)

Syntax at a glance

ALTER EXTERNAL MODEL external_model_object_name SET ( LOCATION = '<prefix>://<path> [ :<port> ] ' , API_FORMAT = '<OpenAI , Azure OpenAI , etc>' , MODEL_TYPE = EMBEDDINGS , MODEL = 'text-embedding-ada-002' [ , CREDENTIAL = <credential_name> ] [ , PARAMETERS = ' { "valid":"JSON" } ' ] );

Work example

A SQL Server 2025 model endpoint or supported parameter needs a reviewed change.

Compare the new endpoint, model, credential reference, and network path with the model owner's change request.

Check your work A lab embedding call reaches the approved model and no secret enters the script.

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