Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.22 KB

handling-large-object-lob-parameters-in-the-clr.md

File metadata and controls

23 lines (20 loc) · 1.22 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Handling Large Object (LOB) Parameters in the CLR
This article describes how to handle large object (LOB) values for parameters in SQL Server CLR integration. Use SqlBytes and SqlChars for LOB types.
rwestMSFT
randolphwest
03/04/2017
sql
clr
reference
large data, CLR integration
LOB data [SQL Server], CLR integration
SqlBytes data type
SqlChars data type

Handling Large Object (LOB) Parameters in the CLR

[!INCLUDE SQL Server] Use SqlBytes and SqlChars to pass large object (LOB) binary type (varbinary(max)) and LOB character type (nvarchar(max)) parameters, respectively. These types allow streaming the LOB values from the database to the common language runtime (CLR) routine, instead of copying the entire value into managed space. SqlBinary and SqlString should be used only for small binary and character string values.

See Also

SQL Server Data Types in the .NET Framework