Skip to Main Content
SQL Server 2017 Developer???s Guide
book

SQL Server 2017 Developer???s Guide

by Dejan Sarka, Miloš Radivojević, William Durkin
March 2018
Intermediate to advanced content levelIntermediate to advanced
816 pages
19h 35m
English
Packt Publishing
Content preview from SQL Server 2017 Developer???s Guide

Large object support

We will now take a look at exactly what LOB data types are supported in SQL Server from SQL Server 2016 and higher, and what aspects of these data types need to be considered when using them with memory-optimized objects.

Let's begin by adding a LOB column to our test table using the following code:

USE InMemoryTest 
GO  
ALTER TABLE dbo.InMemoryTable Add NewColumnMax VARCHAR(MAX) NULL 
GO 

This follows the same scheme as the previous code examples: adding a LOB column is no different with a memory-optimized table than a disk-based table. At least on the surface, anyway!

Let's take another look at our index meta-data to see how exactly LOB columns are handled by the storage engine, using the following code:

USE InMemoryTest ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SQL Server 2016 Developer's Guide

SQL Server 2016 Developer's Guide

Miloš Radivojević, Dejan Sarka, William Durkin
Mastering SQL Server 2017

Mastering SQL Server 2017

Milos Radivojevic, Dejan Sarka, William Durkin, Christian Cote, Matija Lah

Publisher Resources

ISBN: 9781788476195Supplemental Content