Valuta il contenuto e lascia un commento
MSDN
MSDN Library
SQL Server
SQL Server 2008
Collections
 Indexes Collection

  Attiva vista per larghezza di banda ridotta
Contenuti community
In questa sezione
Statistiche Annotazioni (0)
Sono disponibili anche altre versioni per quanto indicato di seguito:
Documentazione in linea di SQL Server 2008 (maggio 2009)
Indexes Collection

Questa funzionalità verrà rimossa a partire da una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

The Indexes collection contains Index objects that reference indexes that implement Microsoft SQL Server constraints and user-defined access paths.

Modello di oggetti SQL-DMO in cui è visualizzato l'oggetto corrente

With the Indexes collection, you can:

  • Create a user-defined access path or unique constraint on data maintained by a SQL Server index.
  • Remove a SQL Server index.

For more information about creating a SQL Server index using SQL-DMO, see Index Object.

To remove a SQL Server index:
  • Use the Remove method of the Indexes collection, as in:

    oTables("Employees").Indexes.Remove("LastName")

When using the Item or Remove method, the Indexes collection supports member identification using either name or ordinal reference syntax. For example:

Set oIndex = oTable.Indexes("LastName")

Or

Set oIndex = oTable.Indexes(2)
ms141242.note(it-it,SQL.100).gifNota:
Creating or removing indexes by using the Indexes collection requires appropriate privilege. The SQL Server login used for SQLServer object connection must be a member of the fixed role db_ddladmin or a role with greater privilege.

Contenuti della community   Che cos'è Contenuti della community?
Aggiungi nuovo contenuto RSS  Annotazioni
Processing
© 2009 Microsoft Corporation. Tutti i diritti riservati. Condizioni per l'utilizzo  |  Marchi  |  Informativa sulla privacy
Page view tracker