SQL Flow Field Guide

TEXTPTR

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

legacy LOB pointer function (deprecated)

What changes

Input
text/ntext/image column
Output or change
text pointer or validity flag
Return type
varbinary

Syntax at a glance

TEXTPTR ( column )

Work example

Understand a legacy text pointer used by old large-object update code.

Plan migration from text or image storage and avoid extending pointer-based update logic.

Check your work TEXTPTR belongs to deprecated text and image workflows and is not a new storage pattern.

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