Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Gets the Transact-SQL statements for creating one or more indexes for the event class.
Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
Public ReadOnly Property IndexSqlStatements As StringCollection
public StringCollection IndexSqlStatements { get; }
public:
property StringCollection^ IndexSqlStatements {
StringCollection^ get ();
}
/** @property */
public StringCollection get_IndexSqlStatements ()
public function get IndexSqlStatements () : StringCollection
Valeur de propriété
A StringCollection containing the indexing Transact-SQL statements.
Notes
Indexing statements are optional. Creating the proper indexes on an event class can help improve performance for event chronicle rules and subscription rules.
Use the StringCollection methods to modify the statements.
If you alter the indexing statements, updating the application deletes and re-creates the event class to which it corresponds. This includes dropping and re-creating the Microsoft SQL Server tables and indexes used by this event class. Any data existing in the original SQL Server tables is permanently deleted.
Exemple
The following examples show how to define an index on an event class:
// Add an index to the event class to help improve performance
flightEvents.IndexSqlStatements.Add(
"CREATE INDEX FlightEventsIndex ON MyAppSchema.FlightEvents " +
"( LeavingFrom, GoingTo );");
' Add an index to the event class to help improve performance.
flightEvents.IndexSqlStatements.Add( _
"CREATE INDEX FlightEventsIndex " + _
"ON MyAppSchema.FlightEvents " + _
"( LeavingFrom, GoingTo );")
Sécurité des threads
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
EventClass Class
EventClass Members
Microsoft.SqlServer.Management.Nmo Namespace
Autres ressources
Définition des classe d'événements
IndexSqlSchema Element for EventClass (ADF)