2.4.5.2.1 CT_DataConnection
Referenced by: CT_DataConnections
The CT_DataConnection complex type specifies a data connection.
Attributes:
ID : An xsd:unsignedLong ([XMLSCHEMA2] section 3.3.21) attribute that specifies the identifier of a CT_DataConnection. It MUST be unique amongst all the DataConnection child elements of the containing CT_DataConnections.
ConnectionString : An optional xsd:string ([XMLSCHEMA2] section 3.2.1) attribute that specifies the connection string to a data source. It MUST be a valid connection string as specified in [MS-ODBCSTR]. The type of the data source specified in the connection string MUST be from the following table.
Type of data source |
Syntax |
---|---|
MUST be a valid connection string as specified in [MS-ODBCSTR] |
|
MUST be a valid connection string as specified in [MS-ODBCSTR] |
|
MUST be in the following format: "PROVIDER=WSS;DATABASE=list URL;LIST={list GUID};viewparam" |
|
MUST be in the following format: "DataModule=Microsoft.Office.Visio.Server.EcsDataHandler,Microsoft.Office.Visio.Server; Data Source=workbook URL;Extended Properties='HDR=hdrvalue;';"
|
|
Custom |
MUST be in the following format: "DataModule=class name,assembly name;Add-in key=value pairs;"
|
Filename : An optional xsd:string ([XMLSCHEMA2] section 3.2.1) attribute that specifies the full path of an ODC file. If the ConnectionString attribute exists, this attribute MUST NOT exist. If the ConnectionString attribute does not exist, this attribute MUST exist.
-
<xsd:complexType name="CT_DataConnection"> <xsd:attribute name="ID" type="xsd:unsignedLong" use="required"/> <xsd:attribute name="ConnectionString" type="xsd:string" use="optional"/> <xsd:attribute name="Filename" type="xsd:string" use="optional"/> </xsd:complexType>