Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

sp_invalidate_textptr (Transact-SQL)

Invalidates the specified in-row text pointer, or all in-row text pointers, in the transaction. sp_invalidate_textptr can be used only on in-row text pointers. These pointers are from tables that have the text in row option enabled.

Topic link iconTransact-SQL Syntax Conventions

sp_invalidate_textptr [ [ @TextPtrValue= ] textptr_value ]
[ @TextPtrValue= ] textptr_value

Is the in-row text pointer that to be invalidated. textptr_value is varbinary(16), with a default of NULL. If NULL, sp_invalidate_textptr invalidates all in-row text pointers in the transaction.

0 (success) or 1 (failure)

SQL Server allows for a maximum of 1,024 active valid in-row text pointers per transaction per database; however, a transaction spanning more than one database can have 1,024 in-row text pointers in each database. sp_invalidate_textptr can be used to invalidate in-row text pointers and, therefore, free space for additional in-row text pointers.

For more information about the text in row option, see sp_tableoption (Transact-SQL).

Requires membership in the public role.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.