다음을 통해 공유


DTSPackageLocation Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The DTSPackageLocation property specifies the location of a Data Transformation Services (DTS) package to be used during a replication process.

구문

object
.DTSPackageLocation [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.
  • value
    A long integer that specifies a SQLDMO_REPLDTSLOC_TYPE constant as described in Settings.

Data Type

Long integer

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetDTSPackageLocation(
SQLDMO_REPLDTSLOC_TYPE pRetVal);
HRESULT SetDTSPackageLocation(
SQLDMO_REPLDTSLOC_TYPE NewValue);

Settings

Set the DTSPackageLocation property using these values.

Constant Value Description

SQLDMOReplDTSPackageLocation_/Distributor

0

The DTS package is located at the Distributor.

SQLDMOReplDTSPackageLocation_/Subscriber

1

The DTS package is located at the Subscriber

주의

For push subscriptions, a DTS package used during the replication process is located at the Distributor by default. Specify a SQLDMO_REPLDTSLOC_TYPE setting of SQLDMOReplDTSPackageLocation_/Subscriber to specify to Distribution Agent that the DTS package is located at the Subscriber.

For pull subscriptions, a DTS package used during a replication process is located at the Subscriber by default. Specify a SQLDMO_REPLDTSLOC_TYPE setting of SQLDMOReplDTSPackageLocation_/Distributor to specify to Distribution Agent that the DTS package is located at the Distributor.

The complexity and quantity of transformations performed by a DTS package may significantly affect performance at the Distributor or Subscriber, especially during periods of heavy processing. Additionally, data transformation requirements may vary at different subscribing locations. Use the DTSPackageLocation and the AgentOffload properties to reduce the network traffic. For example, in the case of a push subscription, Distribution Agent runs at the Distributor by default. If the DTS package is located at the Subscriber, Distribution Agent must run package instructions over a network connection. However, if Distribution Agent execution is offloaded to the Subscriber, the agent runs package steps at the Subscriber.

[!참고] If an application calls DTSPackageLocation on an instance of SQL Server version 7.0, the constant, SQLDMO_E_SQL80ONLY, and the message "This property or method requires Microsoft SQL Server 2000 or later" are returned.

Applies To:

TransPullSubscription2 Object

TransSubscription2 Object

참고 항목

참조

AllowDTS Property
DTSPackageName Property
DTSPackagePassword Property

도움말 및 정보

SQL Server 2005 지원 받기