ScriptTransferPercentComplete Event (SQL-DMO)

The ScriptTransferPercentComplete event occurs after SQL-DMO completes Transact-SQL command batch generation for a Microsoft® SQL Server™ component referenced by the Transfer object.

Applies To

Transfer Object

Syntax

Private Sub object_ScriptTransferPercentComplete( Message as String ,
Percent as Long )

Part Description
object Expression that evaluates to an object in the Applies To list.
Message String containing 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.

Remarks

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.

Prototype (C/C++)

HRESULT ScriptTransferPercentComplete(SQLDMO_LPCSTR szMessage,
long Percent);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.