Export (0) Print
Expand All

SQL Server Binary and Large-Value Data (ADO.NET)

Microsoft SQL Server 2005 introduced the max specifier, which expands the storage capacity of the varchar, nvarchar, and varbinary data types. varchar(max), nvarchar(max), and varbinary(max) are collectively called large-value data types. You can use the large-value data types to store up to 2^31-1 bytes of data. The text, ntext, and image data types in earlier versions of SQL Server can be replaced with varchar(max) and nvarchar(max), respectively, and the image data type can be replaced with varbinary(max).

With large-value data types you can work with SQL Server in a way that was not possible using earlier versions of SQL Server, where binary large object (BLOB) data requires special handling.

SQL Server 2008 introduces the FILESTREAM attribute, which is not a data type, but rather an attribute that can be defined on a column, allowing large-value data to be stored on the file system instead of in the database.

Modifying Large-Value (max) Data in ADO.NET

Describes how to work with the large-value data types introduced in SQL Server 2005.

FILESTREAM Data in SQL Server 2008 (ADO.NET)

Describes how to work with large-value data stored in SQL Server 2008 with the FILESTREAM attribute.

Inserting an Image from a File (ADO.NET)

Demonstrates how to stream BLOB values to versions of SQL Server earlier than SQL Server 2005.

Using UPDATETEXT with Binary Data (ADO.NET)

Demonstrates how to write a BLOB in chunks to SQL Server 2000.

Show:
© 2014 Microsoft