ScriptTransferPercentComplete Event

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The ScriptTransferPercentComplete event occurs after SQL Distributed Management Objects (SQL-DMO) completes Transact-SQL command batch generation for a Microsoft SQL Server component referenced by the Transfer object.

構文

Private Sub
object
_ScriptTransferPercentComplete(
Message as String
, 
Percent as Long
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.
  • Message
    String that contains descriptive message text.
  • Percent
    Long integer representation of a percentage value. The value is the percent of processing complete scaled by 100. For example, a process seven percent complete reports the value 7.

Prototype (C/C++)

HRESULT ScriptTransferPercentComplete(SQLDMO_LPCSTR szMessage,
long Percent);

解説

When using the ScriptTransfer method of the Database object, SQL-DMO calculates percentage completion as each component is scripted. The ScriptTransferPercentComplete event is raised once for every component referenced by the Transfer object.

Applies To:

Transfer Object