Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.11 KB

set-blocksize-command.md

File metadata and controls

28 lines (23 loc) · 1.11 KB
title SET BLOCKSIZE Command
description SET BLOCKSIZE Command
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
helpviewer_keywords
set blocksize command [ODBC]

SET BLOCKSIZE Command

Specifies how disk space is allocated for the storage of memo fields.

Syntax

  
SET BLOCKSIZE TO nBytes  

Arguments

nBytes
Specifies the block size in which disk space for memo fields is allocated. If nBytes is 0, disk space is allocated in single bytes (blocks of 1 byte). If nBytes is an integer between 1 and 32, disk space is allocated in blocks of nBytes bytes multiplied by 512. If nBytes is greater than 32, disk space is allocated in blocks of nBytes bytes. If you specify a block size value greater than 32, you can save substantial disk space.

Remarks

The default value for SET BLOCKSIZE is 64. To reset the block size to a different value after the file has been created, set it to a new value and then use COPY to create a new table. The new table has the specified block size.