Configuring SQL parameters
NSM service designers can configure SQL parameters in the NSM service template XML. SQL parameter values are validated when they are submitted and before the service is run.
Procedure
As the NSM service
designer use
the following example as a guide to configuring SQL parameters:
<databaseConnection>
<driverClassName>oracle.jdbc.driver.OracleDriver</driverClassName>
<url>jdbc:oracle:thin:@test.example.com:testdb2</url>
<username>oracleuser</username>
<password>password</password>
</databaseConnection>
<sqlParameters>
<sqlParameter>
<name>SOURCEROUTETABLE</name>
<sql>select servername from task where uniqueid = 3</sql>
</sqlParameter>
</sqlParameters>
Note: The
<sqlParameters> and </sqlParameters> elements
encapsulate one or more <sqlParameter> elements.Note: The
<sqlParameters> element
will use the database connection as specified in the <dataBaseConnection> element
and associated tags as shown in the example to access the database
on which to execute the SQL query.