Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 3.72 KB

File metadata and controls

55 lines (40 loc) · 3.72 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
Tables and indexes (Native Client OLE DB provider)
Tables and Indexes in SQL Server Native Client
markingmyname
maghan
03/14/2017
sql
native-client
reference
OLE DB, indexes
OLE DB, tables
ITableDefinition interface
tables [OLE DB]
IIndexDefinition interface
SQL Server Native Client OLE DB provider, tables
SQL Server Native Client OLE DB provider, indexes
indexes [OLE DB]

Tables and Indexes in SQL Server Native Client

[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW]

The [!INCLUDEssNoVersion] Native Client OLE DB provider exposes the IIndexDefinition and ITableDefinition interfaces, allowing consumers to create, alter, and drop [!INCLUDEssNoVersion] tables and indexes. Valid table and index definitions depend on the version of [!INCLUDEssNoVersion].

The ability to create or drop tables and indexes depends on the [!INCLUDEssNoVersion] access rights of the consumer-application user. Dropping a table can be further constrained by the presence of declarative referential integrity constraints or other factors.

Most applications targeting [!INCLUDEssNoVersion] use SQL-DMO instead of these [!INCLUDEssNoVersion] Native Client OLE DB provider interfaces. SQL-DMO is a collection of OLE Automation objects that support all the administrative functions of [!INCLUDEssNoVersion]. Applications targeting multiple OLE DB providers use these generic OLE DB interfaces that are supported by the various OLE DB providers.

In the provider-specific property set DBPROPSET_SQLSERVERCOLUMN, [!INCLUDEssNoVersion] defines the following property.

Property ID Description
SSPROP_COL_COLLATIONNAME Type: VT_BSTR

R/W: Write

Default: Null

Description: This property is used only in ITableDefinition. The string specified in this property is used when creating a CREATE TABLE

statement.

In This Section

See Also

SQL Server Native Client (OLE DB)
DROP TABLE (Transact-SQL)
CREATE INDEX (Transact-SQL)
DROP INDEX (Transact-SQL)