다음을 통해 공유


SubscriptionClass.IndexSqlStatements Property

Gets the collection of Transact-SQL statements for creating one or more indexes for the subscription class.

네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

구문

‘선언
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

속성 값

A StringCollection containing the indexing Transact-SQL statements.

주의

Indexing statements are optional.

Use the StringCollection methods to modify the collection of statements.

If you alter the indexing statements, updating the application re-creates the subscription class to which it corresponds. Notification Services renames the existing subscription tables by appending Old to the table name and then creates new tables. Existing subscription table indexes are left unchanged.

If you want to transfer data between the old and new subscription tables, it must be done manually. For more information, see 응용 프로그램 업데이트.

The following examples show how to define an index on a subscription class:

// Add an index to the subscription class.
flightSubscriptions.IndexSqlStatements.Add(
    "CREATE INDEX FlightSubscriptionsIndex ON " + 
    "MyAppSchema.FlightSubscriptions ( LeavingFrom, GoingTo )");
' Add an index to the subscription class to help improve performance
flightSubscriptions.IndexSqlStatements.Add( _
    "CREATE INDEX FlightSubscriptionsIndex ON " + _
    "MyAppSchema.FlightSubscriptions ( LeavingFrom, GoingTo )")

스레드 보안

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.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

SubscriptionClass Class
SubscriptionClass Members
Microsoft.SqlServer.Management.Nmo Namespace

관련 자료

구독 클래스에 대한 인덱스 정의
IndexSqlSchema Element for SubscriptionClass (ADF)