pasTransfer Account XML Destination
The pasTransfer Account XML Destination destination connection is used to generate files consumed by the pasTransfer Account XML Source connection in subsequent transformations.
•Source data is derived from multiple files or query results that must be extracted individually and only after all source files have been successfully validated and/or mapped combined into a single output for submission to the destination as an atomic batch that succeeds or fails as a single unit (all or nothing).
•Source data must undergo multiple mapping phases using multiple mapping sheets for purposes of summarizing (grouping with aggregate functions) or complex mapping in which a first pass transforms key attributes for use by the second phase mapping sheets.
•Detected Macros: Along the left hand side of the page is a list of all the macro commands that can be used to extract the values of the standard source fields (accessed with the [Copy] macro), the dynamic source columns (accessed with the [Attribute] macro), and the data appended during the mapping process (accessed with the [Mapping] macro). You may drag and drop items from the detected macros listing to new or existing rows on the Custom Attributes tab to write an export expression.
•Export Options: This tab determines the behavior during the export process
•Export Data to SQL Server: If this option is selected an additional SQL Server Destination Query Page will be added to the wizard that allows the native XML to be accessed as an XML variable named @PASXML by a Transact-SQL query sent to SQL Server.
•Custom Attributes: By default all attributes on all rows of data imported from the source connection and any additional attributes added during the mapping process are exported but that behavior can be overridden or augmented using this table. To suppress attributes from the source add an entry to this table with the same name as the incoming attribute and a value of [Blank] which will remove the value. To create a new attribute add a row with the name of the attribute you want to create and provide a macro expression in the value column. You can also override existing attributes by adding a row using the same name as an existing attribute and providing a macro expression in the value column.
•SQL Server Name: The location/address of the SQL Server database.
•Authentication: The method for signing into the SQL Server database. Windows will attempt to log in with the users Windows Credentials. SQL Server will allow you to manually enter a user name and password for the SQL Server database. Optionally, you can choose to save the password afterwards.
•Database Name: The name of the target database which contains the table or view which is to be inserted into.
•Enable Macros: If this option is selected macro commands can be used in any field with a yellow background color.
•Query: Use the Transact-SQL language to create statements to process an XML variable named @PASXML which will contain all of the native XML exported by the destination connection. The connection will break your script into batches separated by the use of the word GO on a line by itself and will execute each batch one after another. Each batch will essentially have a declaration added to it of DECLARE @PASXML xml; and that variable will contain the entire native XML document.
•Connection Timeout: The amount of time to spend attempting to make a connection to the database. The default time is 15 seconds.
•Command Timeout: The amount of time to spend attempting to complete the commands or transaction before disconnecting. It is advised to use a higher command timeout if you are inserting a lot of data or working with a slow connection.
•Use Transactions: A transaction is a single unit of work. Enabling transactions allows for an all-or-nothing insert. If any lines encounter a problem, the transaction will roll back and all modifications will be erased. If a transaction is successful, all modifications were successful and become a permanent part of the database.
Copyright © 2023 pasUNITY, Inc.
Send comments on this topic.