Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.46 KB

File metadata and controls

43 lines (36 loc) · 1.46 KB
title SetEOS Method | Microsoft Docs
ms.prod sql-non-specified
ms.technology
drivers
ms.custom
ms.date 01/19/2017
ms.reviewer
ms.suite
ms.tgt_pltfrm
ms.topic article
apitype COM
f1_keywords
_Stream::raw_SetEOS
_Stream::SetEOS
helpviewer_keywords
SetEOS method [ADO]
ms.assetid 707c18ca-6a56-4970-bbd6-ae1fb86a0b8a
caps.latest.revision 12
author MightyPen
ms.author genemi
manager jhubbard

SetEOS Method

Sets the position that is the end of the stream.

Syntax

  
Stream.SetEOS  

Remarks

SetEOS updates the value of the EOS property, by making the current Position the end of the stream. Any bytes or characters following the current position are truncated.

Because Write, WriteText, and CopyTo do not truncate any extra values in existing Stream objects, you can truncate these bytes or characters by setting the new end-of-stream position with SetEOS.

Caution

If you set EOS to a position before the actual end of the stream, you will lose all data after the new EOS position.

Applies To

Stream Object (ADO)