Description:
ADO connection parameters required for communication with the SQL
database. Most commonly, these parameters are represented in XML
with a param node for every property/value pair, as in the
following example:
<connect>
<param name="Provider">sqloledb</param>
<param name="Server">myserver</param>
<param name="Database">pubs</param>
<param name="Trusted_Connection">yes</param>
</connect>
ExecSQL concatenates these parameters into the ADO
connect string as follows:
Provider=sqloledb;Server=myserver;Database=pubs;Trusted_Connection=yes
Alternately, you can represent some parameters simply as
attributes of the connect node. The following example is
functionally equivalent to the previous example:
<connect Provider="sqloledb" Server="myserver" Database="pubs" Trusted_Connection="yes"/>
The first format supports all attribute names and is the more
common usage. The second can be used only with the ADO parameters
that are defined in the input schema for ExecSQL. (See the
list following "Atributes.") Both formats can be used in the same
request.
Parent:
executeData
Child:
param (minOccurs="0" maxOccurs="*")
Attributes:
The following ADO attributes are defined in the input schema for
ExecSQL:
Note These are the only attributes that can be specified
as attributes of connect. Any other ADO attributes must be
specified as \connect\param nodes.
Provider
|
Optional. Name of the OLE DB provider to use for the
connection. |
Driver
|
Optional. Name of the SQL Server ODBC driver. |
Server
|
Optional. Name of the SQL Server for the connection. |
Database
|
Optional. Name of the SQL database for the connection. |
DSN
|
Optional. Name of an existing ODBC user or system data
source. |
FileDSN
|
Optional. Name of an existing ODBC file data source. |
URL
|
Optional. URL of the database server for the connection. |
uid
|
Optional. SQL Server logon account. Not required for Microsoft®
Windows® authentication. |
pwd
|
Optional. Password for the SQL Server logon account specified
in uid. Not required if the logon has a NULL password or if
Trusted_Connection is Yes. |
Password
|
Optional. Same as pwd (password attribute varies by
provider). |
Trusted_Connection
|
Enumeration that specifies how the ODBC driver performs logon
validation. Values are yes or no (default). If yes, the ODBC driver
uses Windows authentication and the uid and pwd
attributes are optional. If no, ODBC driver uses the SQL Server
username and password, and uid and pwd are
required. |
Attributes required for a particular usage vary depending on the
requirements of the specific OLE DB driver. For more
information, see the ADO documentation.
One ADO attribute, Maximum Rows, corresponds to the SQL
Provider's MaxRows registry property, which defines the
maximum number of rows that can be returned for a recordset from a
SQL table. Specifying a new value for Maximum Rows enables
you to override the default MaxRows value for a specific SQL
command, as in the following example:
<param name="Maximum Rows">value</param>
|