PrintMax

Returns an nvarchar(MAX) user defined message to the client
  • Stored Procedure
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

EXEC SQLHTTP.net.PrintMax @Text [, @WrapAtWidth]

Arguments:

Name Type Description
@Text nvarchar(MAX) Text to be returned to the client.
@WrapAtWidth int Optional. The maximum value of characters to be returned in a single line if no line break is encountered. Max value is 4000 characters.

Remarks:

This function is similar to SQL Server’s PRINT command, but with a @Text parameter of type nvarchar(MAX).

Sample Usage:

This can be
a very long
text

See Also: