Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.24 KB

File metadata and controls

24 lines (20 loc) · 1.24 KB
title Row bookmarks (Native Client OLE DB provider)
description Row bookmarks (Native Client OLE DB provider)
author markingmyname
ms.author maghan
ms.date 03/04/2017
ms.service sql
ms.subservice native-client
ms.topic reference
helpviewer_keywords
bookmarks [OLE DB]
SQL Server Native Client OLE DB provider, bookmarks
rowsets [OLE DB], bookmarks
OLE DB rowsets, bookmarks

Bookmarks in SQL Server Native Client

[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW]

Bookmarks let consumers quickly return to a row. With bookmarks, consumers can access rows randomly based on the bookmark value. The bookmark column is column 0 in the rowset. The consumer sets the dwFlag field value of the binding structure to DBCOLUMNSINFO_ISBOOKMARK to indicate that the column is used as a bookmark. The consumer also sets the rowset property DBPROP_BOOKMARKS to VARIANT_TRUE. This lets column 0 be present in the rowset. The IRowsetLocate::GetRowsAt method is then used to fetch rows, starting with the row specified as an offset from a bookmark.

See Also

Rowsets