2.4.1 PackageVariableType

The PackageVariableType complex type is used to specify package variables. Package variables are used to save screen information so that the Microsoft SQL Server Integration Services (SSIS) user interface editor can present the screen for editing in the same state as it was left in.

The following is the XSD for the PackageVariableType complex type.

  
   <xs:complexType name="PackageVariableType">
     <xs:sequence>
       <xs:element name="Property"
                   maxOccurs="unbounded">
         <xs:complexType>
           <xs:complexContent>
             <xs:extension base="DTS:PropertyElementBaseType">
               <xs:attribute name="Name"
                   type="DTS:PackageVariablePropertyNameEnum"
                   use="required"/>
             </xs:extension>
           </xs:complexContent>
         </xs:complexType>
       </xs:element>
       <xs:element name="PropertyExpression" 
                   type="DTS:PropertyExpressionElementType"
                   minOccurs="0" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>

The following table provides additional information about the elements, types, and constraints in the PackageVariableType complex type.

Element

Additional constraints

Type definition

Description

Property

In some cases, constraints are placed on the Property element's value for specific values of the Name attribute of the Property element. If such constraints exist, they are specified where the meaning of the particular property name is specified. These constraints MUST be followed. If the optional DataType attribute is present, the value of the Property element MUST be of the type that is specified by the DataType attribute.

Inline in the XSD in this section.

Property elements contain values for many different properties associated with an instance of the containing Executable element, according to the Name attribute of each Property element.

PropertyExpression

Additional constraints exist for the PropertyExpression element. For a description of these constraints, see PropertyExpressionElementType.

PropertyExpressionElementType

The PropertyExpression element serves the same purpose as specified for the Property element, except that an expression that is evaluated at run time is contained in the element's value that is stored in the Integration Services file format.

The following table provides additional information about the attributes and types for the Property element that is declared inline in the complex type declaration. The Property element is an extension of the PropertyElementBaseType type with the addition of the Name attribute, which is specified in the following table.

Attribute

Constraints

Description

Name

None.

Specifies the name of the property. Each named property has its own use and interpretation. The meaning of each named property is given with the definition of the type for the Name attribute.