UserId Tag

ClosedDescription

Sets the user ID used to log in to the database.

ClosedSyntax

<UserId>Value</UserId>

Where Value equals the user ID for the database.

ClosedParent Tag

<RecordSet>

ClosedRemarks

The <UserId> tag sets the user ID for the selected OLEDB and ODBC databases.

<UserId> is an optional tag that is used with the <Print>, <FormatSetup>, and <ExportPrintPreviewToImage> commands when the <RecordSet> tag is included in the script.

ClosedExample

<?xml version="1.0" encoding="utf-8"?>

<XMLScript Version="2.0" Name="09232006_103601_Job1" ID="123">

<Command Name="Job1">

<Print>

<Format>Label1.btw</Format>

<RecordSet Name="MS_SQL_DS2" Type="btODBC">

<UserId>Administrator</UserId>

<Password>xy111</Password>

<SQLStatement>SELECT * FROM Table WHERE Name='Product'</SQLStatement>

</RecordSet>

</Print>

</Command>

</XMLScript>

ClosedRequirements

BTXML Script version 1.0 (BarTender 8.0 and later versions)

Related Topics