Skip to content

UserGuide_DynamicParameterizedQuery

nishi_74322014 edited this page Nov 3, 2026 · 1 revision

Open Touryo UserGuide (Dynamic Parameterized Query Edition)

This is a English page.
Click here for Japanese version of this file.

Updated in July 2026

Introduction

Target audience

  • SEs and developers who develop applications with Open Touryo

Overview

This document summarizes how to use the dynamic parameterized query function of the framework.

Trademarks

Company names and product names in this document are trademarks or registered trademarks of their respective companies.

Table of contents

1. How to write dynamic parameterized queries

2. How to use the dynamic parameterized query analysis tool

3. How to implement data access processing

1. How to write dynamic parameterized queries

1.1 Overview

The dynamic parameterized query of "Open Touryo" adopts query writing rules that use XML tags. By writing a query according to these rules and setting parameters from the API, you can control JOIN and WHERE clauses and the enabling / disabling of conditional expressions. An example is shown below.

<?xml version="1.0" encoding="shift_jis" ?>
<ROOT>
  SELECT DISTINCT ctm.companyname, ctm.contactname, ctm.contacttitle FROM orders AS o
  INNER JOIN customers AS ctm ON o.customerid = ctm.customerid
  <JOIN name="j1">
    INNER JOIN shippers AS s ON o.shipvia = s.shipperid
  </JOIN>
  <JOIN name="j2">
    INNER JOIN [order details] AS od ON o.orderid = od.orderid
      INNER JOIN products AS p ON od.productid = p.productid
        INNER JOIN categories AS cgy ON p.categoryid = cgy.categoryid
  </JOIN>
  <WHERE>WHERE<IF>s.companyname=@p1</IF><IF>AND cgy.categoryname=@p2</IF></WHERE>
  ORDER BY [<VAL name="COLUMN"/>] <VAL name="SEQUENCE"/>
</ROOT>

Figure 1.1-1 Example of a dynamic parameterized query of "Open Touryo"

Visual Studio can be used to create dynamic parameterized queries (XML). Note that performance load becomes high when the total number of tags exceeds 200.

The dynamic parameterized query part is outlined below.

<?xml version="1.0" encoding="shift_jis" ?>
<ROOT>
  SELECT DISTINCT ctm.companyname, ctm.contactname, ctm.contacttitle FROM orders AS o
  INNER JOIN customers AS ctm ON o.customerid = ctm.customerid
  <JOIN name="j1">
    INNER JOIN shippers AS s ON o.shipvia = s.shipperid
  </JOIN>
  <JOIN name="j2">
    INNER JOIN [order details] AS od ON o.orderid = od.orderid
    INNER JOIN products AS p ON od.productid = p.productid
    INNER JOIN categories AS cgy ON p.categoryid = cgy.categoryid
  </JOIN>
  <WHERE>WHERE<IF>s.companyname=@p1</IF><IF>AND cgy.categoryname=@p2</IF></WHERE>
  ORDER BY [<VAL name="COLUMN"/>] <VAL name="SEQUENCE"/>
</ROOT>
  • JOIN clauses can be controlled: The <JOIN> tag controls whether a JOIN clause is enabled or disabled.
  • WHERE clauses can be controlled: The <IF> tag controls whether a search condition is enabled or disabled. The <WHERE> tag deletes the WHERE clause itself when all the search conditions are disabled.
  • Arbitrary strings can be inserted: The <VAL> tag can insert arbitrary strings, so any pattern of SQL formatting can be handled. However, care must be taken to avoid SQL injection when using it.

To use the above SQL definition from a program, set the parameters using the API as follows.

this.SetSqlByFile2("file name");

// Dynamically set values for the parameters of the parameterized query.
this.SetParameter("j1", true);
this.SetParameter("j2", true);
this.SetParameter("p1", "United Package");
this.SetParameter("P2", "Beverages");

// Replace the user-defined parameters.
this.SetUserParameter("COLUMN", "ctm.companyname");
this.SetUserParameter("SEQUENCE", "DESC");

SQL formatted by the parameter specification (the result of the above example):

SELECT DISTINCT ctm.companyname, ctm.contactname, ctm.contacttitle FROM orders AS o
  INNER JOIN customers AS ctm ON o.customerid = ctm.customerid
    INNER JOIN shippers AS s ON o.shipvia = s.shipperid
      INNER JOIN [order details] AS od ON o.orderid = od.orderid
        INNER JOIN products AS p ON od.productid = p.productid
          INNER JOIN categories AS cgy ON p.categoryid = cgy.categoryid
WHERE s.companyname=@p1 AND cgy.categoryname=@p2
ORDER BY ctm.[companyname] DESC

Figure 1.1-2 Overview of the dynamic parameterized query of "Open Touryo" (1)

Subqueries and the parameter list of the IN clause can also be controlled. The <SUB> tag handles subqueries, and specifying an ArrayList for the <LIST> tag automatically expands the parameter list of the IN clause.

<?xml version="1.0" encoding="shift_jis" ?>
<ROOT>
  SELECT * FROM PRODUCTS
  <WHERE>WHERE
    <SUB name="SUB1">CATEGORYID IN(SELECT CATEGORYID FROM CATEGORIES
      <WHERE>WHERE
        <SUB name="SUB2">CATEGORYID IN(SELECT CATEGORYID FROM CATEGORIES
          <WHERE>WHERE
            <IF name="ISNOTNULL1">CATEGORYID IS NOT NULL
              <ELSE>CATEGORYID IS NULL</ELSE>
            </IF>
          </WHERE>)
        </SUB>
        <IF name="ISNOTNULL2">AND CATEGORYID IS NOT NULL
          <ELSE>AND CATEGORYID IS NULL</ELSE>
        </IF>
      </WHERE>)
    </SUB>
    <IF name="ISNOTNULL3">AND CATEGORYID IS NOT NULL
      <ELSE>AND CATEGORYID IS NULL</ELSE>
    </IF>
    <LIST>AND CATEGORYID IN(@PLIST)</LIST>
    AND DISCONTINUED = @BIT
  </WHERE>
  ORDER BY [<VAL name="COLUMN"/>] <VAL name="SEQUENCE"/>
</ROOT>
  • Subqueries can be controlled: Using the <SUB> tag, subqueries can be controlled. Inside a subquery, <IF> tags, <WHERE> tags, etc. can be nested as usual.
  • ELSE conditions can be specified: The <ELSE> tag can be nested in the <IF> tag (mainly used to implement IS NULL conditions). For how to set the ELSE condition that enables this <ELSE> tag, see the description of the <IF> and <ELSE> tags in section 1.2.
  • Parameter lists of the IN clause can be specified: By specifying an ArrayList for the <LIST> tag, the parameter list of the IN clause is expanded automatically.

To use the above SQL definition from a program, set the parameters using the API as follows.

this.SetSqlByFile2("file name");

// Dynamically set values for the parameters of the parameterized query.
this.SetParameter("SUB1", true);
this.SetParameter("SUB2", true);
this.SetParameter("ISNOTNULL1", true);
this.SetParameter("ISNOTNULL2", true);
this.SetParameter("ISNOTNULL3", true);
this.SetParameter("PLIST", new ArrayList(new short[] { 1, 2, 3, 4, 5, 6, 7, 8 }));
this.SetParameter("BIT", true);

// Replace the user-defined parameters.
this.SetUserParameter("COLUMN", "SUPPLIERID");
this.SetUserParameter("SEQUENCE", "DESC");

SQL formatted by the parameter specification (the result of the above example):

SELECT * FROM PRODUCTS WHERE
 CATEGORYID IN(SELECT CATEGORYID FROM CATEGORIES
 WHERE CATEGORYID IN(SELECT CATEGORYID FROM CATEGORIES
 WHERE CATEGORYID IS NOT NULL) AND CATEGORYID IS NOT NULL)
 AND CATEGORYID IS NOT NULL
 AND CATEGORYID IN(@PLIST_1, @PLIST_2, @PLIST_3, @PLIST_4, @PLIST_5, @PLIST_6, @PLIST_7, @PLIST_8)
 AND DISCONTINUED = @BIT

 ORDER BY [SUPPLIERID] DESC

Figure 1.1-3 Overview of the dynamic parameterized query of "Open Touryo" (2)

1.2 Writing rules

The XML tags used in the dynamic parameterized query of "Open Touryo" are shown in Table 1.2-1 below.

Table 1.2-1 XML tags used in the dynamic parameterized query of "Open Touryo"

No. Tag name Tag notation Description / nesting [1]
1 ROOT tag <ROOT>…</ROOT> All query definitions are placed inside this tag. The ROOT tag can nest all tags other than the ROOT tag.
2 VAL tag <VAL name="xxx"/> Replaced with the string set in the parameter. Arbitrary strings can be inserted. The parameter name is specified in the name attribute (in-tag parameter). If it is null / not set, it is disabled and deleted. Since SQL injection is possible, do not specify user input directly. Cannot be nested.
3 INSCOL tag <INSCOL name="xxx">…</INSCOL> Dedicated to the column list of INSERT clauses (normally used only in automatically generated SQL). Enables the column information if the in-tag parameter of the name attribute is set. Only column information and VAL tags can be nested.
4 IF tag <IF>…</IF> / <IF name="xxx">…</IF> Encloses a conditional expression in the WHERE clause and controls whether it is enabled or disabled. Enabled if the in-text parameter (the first parameter) is set, disabled if not set. The in-tag parameter of the name attribute allows true/false (with false the ELSE is enabled; an error occurs if there is none). Only conditional expressions, ELSE and VAL tags can be nested.
Example: <IF>AND XXX=@P1<ELSE>AND XXX IS NULL</ELSE></IF>
5 ELSE tag <ELSE>…</ELSE> Describes the conditional expression used when ELSE is enabled by the IF tag. In-text parameters and in-tag parameters cannot be written (write a conditional expression such as XXX IS NULL). Only conditional expressions and VAL tags can be nested.
6 SELECT-CASE-DEFAULT tag <SELECT name="xxx"><CASE value="A">…</CASE><DEFAULT>…</DEFAULT></SELECT> Enables the statement of the matching CASE or of DEFAULT depending on the parameter value of the name attribute (DEFAULT can be omitted). Deleted if null / not set. Only VAL tags can be nested.
7 LIST tag <LIST>…IN clause conditional expression…</LIST> Encloses the conditional expression of an IN clause and controls the specification of the parameter list and whether the IN clause is enabled or disabled. The in-text parameter is used as the parameter name. The value is of ArrayList type (expanded to @name_1, @name_2… at execution). Deleted if the number of elements is 0 / null / not set. Only IN clause conditional expressions and VAL tags can be nested.
8 JOIN tag <JOIN name="xxx">…JOIN clause…</JOIN> Controls whether a JOIN clause is enabled or disabled. Enabled if the parameter value is true, deleted if false / null / not set (other values cause an error). All tags other than ROOT, PARAM and DIV can be nested.
9 SUB tag <SUB name="xxx">…subquery conditional expression…</SUB> Controls whether the conditional expression of a subquery in the WHERE clause is enabled or disabled. Enabled if the parameter value is true, deleted if false / null / not set. All tags other than ROOT, PARAM and DIV can be nested.
10 WHERE tag <WHERE>…WHERE clause…</WHERE> When the processing of IF / LIST / SUB leaves no conditional expression in the WHERE clause, or may leave an invalid state such as "WHERE AND conditional expression", deletes the unnecessary WHERE clause and operators (AND, OR). All tags other than ROOT, PARAM and DIV can be nested.
11 DELCMA tag <DELCMA>…comma-separated list…</DELCMA> Deletes extra commas added before and after the generated string (normally used only in automatically generated update SQL). All tags other than ROOT, PARAM and DIV can be nested.
12 PARAM tag <PARAM>…parameter information…</PARAM> Used by the analysis tool to run a test with the parameter values specified between the PARAM tags (writing rules below). Only parameter descriptions and DIV tags can be nested.
13 DIV tag <DIV/> Used to separate parameters within the PARAM tag. Cannot be nested.

Parameter writing rules of the PARAM tag (separated by parameter name, …<DIV/>):

  • User-defined parameter (VAL tag): P1, xxx<DIV/>
  • Normal parameter: P1, String, xxx<DIV/> / P2, Int32, 123<DIV/>
  • Array parameter: P1, String[], xxx, yyy, zzz<DIV/>
  • ArrayList parameter: P1, String, xxx, yyy, zzz<DIV/> (two or more values in the list)
  • DBNull parameter: P1, DBNull[, anything]<DIV/>
  • null parameter: P1, (anything), null<DIV/>

Note 1: In-text parameters (DBMS parameters such as @p) remain in the parameter collection after the tags are processed (because DBMS parameters act in multiple places). In-tag parameters (the name attribute of tags) are deleted after processing. Therefore, in-text parameters act on all tags, while in-tag parameters act only on the first tag [2].

The correspondence between the strings used in the PARAM tag and types is shown in Table 1.2-2 below.

Table 1.2-2 Strings used in the PARAM tag

No. Parameter type name String for the type (normal / array) String for the value (restrictions)
1 System.Boolean Boolean / Boolean[] Only the strings "true" or "false" can be specified
2 System.Byte Byte / Byte[] A character that fits in a Byte
3 System.UInt16 UInt16 / UInt16[] A string representing a number that fits in a UInt16
4 System.UInt32 UInt32 / UInt32[] A string representing a number that fits in a UInt32
5 System.UInt64 UInt64 / UInt64[] A string representing a number that fits in a UInt64
6 System.SByte SByte / SByte[] A character that fits in an SByte
7 System.Int16 Int16 / Int16[] A string representing a number that fits in an Int16
8 System.Int32 Int32 / Int32[] A string representing a number that fits in an Int32
9 System.Int64 Int64 / Int64[] A string representing a number that fits in an Int64
10 System.Decimal Decimal / Decimal[] A string representing a number that fits in a Decimal
11 System.Single Single / Single[] A string representing a number that fits in a Single
12 System.Double Double / Double[] A string representing a number that fits in a Double
13 System.Char Char / Char[] A character that fits in a Char
14 System.String String / String[] Any string
15 System.DateTime DateTime / DateTime[] A string that can be converted to DateTime (date type)
16 System.DBNull DBNull / not supported -
17 For null values - / not supported Only the string "null" can be specified

To set a null value in a DB field, set "DBNull" as the parameter of the Insert or Update query. Note that "DBNull" cannot be used for parameters of Where clause conditions (normally IS NULL is specified in the SQL). Also, when "null" is used for a parameter of a dynamic parameterized query, the tag is disabled (with an IF-ELSE tag, the ELSE is enabled).

※ Specification examples for No. 16

  • P1 , DBNull ,
  • P1 , DBNull , xxx
  • P1 , DBNull , yyy

※ Specification examples for No. 17

  • P1 , , null
  • P1 , xxx , null
  • P1 , yyy , null

Note 2: If the XML of a "dynamic parameterized query" contains the operators "<" and ">", they are recognized as XML tags and a syntax check error occurs. Therefore, to write the operators "<" and ">" in the XML, use &lt; and &gt; (in the latest version, CDATA sections <![CDATA[…]]> can also be used).

2. How to use the dynamic parameterized query analysis tool

2.1 Overview

For dynamic parameterized queries, a dedicated tool that realizes 2WAY-SQL [3] (the dynamic parameterized query analysis tool) can be used to test query execution based on the parameter information embedded in the query.

  • .NET Framework 2.0 is required as the runtime.
  • No installation is required; it can be used by copying the folder. Double-click "DPQuery_Tool.exe" directly under the folder where it was placed to run it.
  • The DLLs of the data providers are bundled in the folder, so it can be used without installing all data providers (SQLClient, ODP.NET, DB2.NET) in the execution environment (however, selecting and connecting to an uninstalled provider causes an error).

2.2 Basic usage

The basic usage is as follows.

  1. Select a data provider from the combo box.
  2. Enter the connection string in the text box.
  3. Press the Connect button to connect to the DB.
  4. Enter the query to execute directly, or create (specify) a query file.
  5. Execute the entered query (the specified query file).

Figure 2.2-1 Dynamic parameterized query analysis tool

Note that the parameter information must be embedded in the dynamic parameterized query with the <PARAM> tag as follows.

<?xml version="1.0" encoding="shift_jis" ?>
<ROOT>
  SELECT DISTINCT ctm.companyname, ctm.contactname, ctm.contacttitle FROM orders AS o
  INNER JOIN customers AS ctm ON o.customerid = ctm.customerid
  <JOIN name="j1">INNER JOIN shippers AS s ON o.shipvia = s.shipperid</JOIN>
  <JOIN name="j2">
    INNER JOIN [order details] AS od ON o.orderid = od.orderid
      INNER JOIN products AS p ON od.productid = p.productid
        INNER JOIN categories AS cgy ON p.categoryid = cgy.categoryid
  </JOIN>
  <WHERE>WHERE<IF>s.companyname=@p1</IF><IF>AND cgy.categoryname=@p2</IF></WHERE>
  ORDER BY [<VAL name="COLUMN"/>] <VAL name="SEQUENCE"/>
  <PARAM>
    j1, Boolean, true<DIV/>
    j2, Boolean, true<DIV/>
    p1, String, United Package<DIV/>
    p2, String, Beverages<DIV/>
    COLUMN, ctm.companyname<DIV/>
    SEQUENCE, DESC<DIV/>
  </PARAM>
</ROOT>
<?xml version="1.0" encoding="shift_jis" ?>
<ROOT>
  SELECT * FROM PRODUCTS
  <WHERE>WHERE
    <SUB name="SUB1">CATEGORYID IN(SELECT CATEGORYID FROM CATEGORIES
      <WHERE>WHERE
        <SUB name="SUB2">CATEGORYID IN(SELECT CATEGORYID FROM CATEGORIES
          <WHERE>WHERE
            <IF name="ISNOTNULL1">CATEGORYID IS NOT NULL
              <ELSE>CATEGORYID IS NULL</ELSE>
            </IF>
          </WHERE>)
        </SUB>
        <IF name="ISNOTNULL2">AND CATEGORYID IS NOT NULL
          <ELSE>AND CATEGORYID IS NULL</ELSE>
        </IF>
      </WHERE>)
    </SUB>
    <IF name="ISNOTNULL3">AND CATEGORYID IS NOT NULL
      <ELSE>AND CATEGORYID IS NULL</ELSE>
    </IF>
    <LIST>AND CATEGORYID IN(@PLIST)</LIST>
    AND DISCONTINUED = @BIT
  </WHERE>
  ORDER BY [<VAL name="COLUMN"/>] <VAL name="SEQUENCE"/>
  <PARAM>
    SUB1, Boolean, true<DIV/>
    SUB2, Boolean, true<DIV/>
    ISNOTNULL1, Boolean, true<DIV/>
    ISNOTNULL2, Boolean, true<DIV/>
    ISNOTNULL3, Boolean, true<DIV/>
    PLIST, Int16, 1, 2, 3, 4, 5, 6, 7, 8<DIV/>
    BIT, Boolean, true<DIV/>
    COLUMN, SUPPLIERID<DIV/>
    SEQUENCE, DESC<DIV/>
  </PARAM>
</ROOT>

Figure 2.2-2 Embedding parameter information with the <PARAM> tag

When a query is executed, whether it is a dynamic parameterized query, a static parameterized query or plain SQL is determined automatically, and it is executed automatically in the way that matches the query definition.

The execution result is displayed in the following dialog. The dialog has three tabs, which let you check the "Result tab: SQL execution result", the "SQL tab: executed SQL" and the "LOG tab: SQL output to the log".

Figure 2.2-3 Automatic execution in the way that matches the definition

Figure 2.2-4 SQL execution result

Figure 2.2-5 Executed SQL

Figure 2.2-6 SQL output to the log

2.3 Other GUI panel operations

1. Managing connections

In the [Settings] group box, you can create new settings and save / load them. Slots 1 to 5 are available as save / load destinations, and can be selected with the [Select slot] combo box.

Figure 2.3-1 [Settings] group box

Figure 2.3-2 Input dialog when creating new settings

After creating new settings, changing the data provider with the [Select data provider] combo box automatically builds an example connection string. Modify it as necessary, confirm the connection with the [Connect] button, then [Disconnect] and save with the [Save settings] button.

2. Transaction control

The [Transaction] group box allows detailed control of transactions.

Figure 2.3-3 [Transaction] group box

  1. The isolation level can be selected with the [Isolation level] combo box (some isolation levels are not supported depending on the DBMS, in which case an error message is displayed).
  2. The transaction control method can be selected from "Auto" and "Manual" with the [Control method] combo box.
    • Auto: A transaction is started for each query execution and is automatically committed after execution (rolled back on error).
    • Manual: Controlled manually with the [Start] to [Commit] and [Rollback] buttons, regardless of query execution.
  3. The [Interface] combo box selects the API used when executing the query.

3. Creating and editing query files

The [Query file] group box allows creating and editing SQL.

Figure 2.3-4 [Query file] group box

Four buttons are available: query file [Open], [Close], [Save (overwrite)] and [Save as] ([Open] can be replaced by dragging and dropping an SQL file onto the Form. Shortcuts are also assigned). In addition, the right-click context menu lets you insert samples, templates and tags.

Figure 2.3-5 Inserting samples, templates and tags of dynamic parameterized queries

4. Execution options

The two settings above the [Interface] combo box are the execution options.

Figure 2.3-6 Execution options

  • [Type inference mode (type specification)] check box: Check it when testing the methods that specify types (normally there is no need to use the type-specifying methods). The SetParameter method of the DB component (the overload with a type) is executed.
  • [Array bind count] spin box: When using the array bind available in ODP.NET, specify a value of 0 or more (it is set to OracleCommand.ArrayBindCount).

2.4 Static parameterized query execution function

The dynamic parameterized query analysis tool also supports the execution of static parameterized queries and SQL. For static parameterized queries, parameters can be set using SQL comments for parameter settings.

SELECT * FROM Employees
WHERE
FirstName=@FN
AND LastName=@LN1
AND EmployeeID IN (SELECT EmployeeID FROM Employees WHERE LastName=@LN2)
AND ReportsTo IN ( @P1 , @P2 )
ORDER BY %COLUMN% %SEQUENCE%

/*PARAM* FN, String, Nancy *PARAM*/
/*PARAM* LN1, String, Davolio *PARAM*/
/*PARAM* LN2, String, Davolio *PARAM*/
/*PARAM* P1, String, 2 *PARAM*/
/*PARAM* P2, String, 5 *PARAM*/
/*PARAM* COLUMN, EmployeeID *PARAM*/
/*PARAM* SEQUENCE, DESC *PARAM*/

Figure 2.4 How to set parameters for a static parameterized query

3. How to implement data access processing

Whether a query is a dynamic parameterized query, a static parameterized query or plain SQL is determined automatically, and it is executed automatically in the way that matches the definition. Therefore, the query execution method does not change even for dynamic parameterized queries.

API to set a query:

//   -- When reading from a file.
this.SetSqlByFile(
    Path.Combine(GetConfigParameter.GetConfigValue("sqlTextFilePath"), "file name"));

//   -- When reading from a file or an embedded resource.
//      To read from an embedded resource, the following setting is required.
//      MyBaseDao.UseEmbeddedResource = true;
this.SetSqlByFile2("file name");

Figure 3-2: Specify directly

//   -- When specifying directly.
this.SetSqlByCommand("dynamic parameterized query");

Figure 3-1: Read from a file

API to set parameters:

// Dynamically set values for the parameters of the parameterized query (the leading symbol is not needed [6]).
this.SetParameter("P1", testParameter.ShipperID);

Figure 3-3: Normal parameter

// Replace the user-defined parameters (replace %XXXX% and VAL tags with the specified string).
this.SetUserParameter("UP1", "XXXXX");

Figure 3-4: User-defined parameter

API to execute SQL:

//   -- For insert, update and delete (the number of rows can be checked)
obj = this.ExecInsUpDel_NonQuery();
//   -- When executing a SELECT query that returns one cell of information
obj = this.ExecSelectScalar();
//   -- SELECT query that returns table (or record) information (argument = DataTable)
obj = new DataTable();
this.ExecSelectFill_DT((DataTable)obj);
//   -- SELECT query that returns table (or record) information (argument = DataSet)
obj = new DataSet();
this.ExecSelectFill_DS((DataSet)obj);
//   -- Returns a data reader
IDataReader idr = (IDataReader)this.ExecSelect_DR();

Figure 3-5: The following five methods can be used to execute SQL

In this way, even for dynamic parameterized queries, the APIs are the same as those used for static parameterized queries and SQL [7].

For details on the API, see chapter 3: "How to use the D layer framework" of the "User Guide (Developers edition)".

Footnotes

  1. All tags can nest comments and CDATA sections.
  2. Because the specification would become complex if we considered whether parameters can be used across multiple kinds of tags, or whether in-tag and in-text parameters can be mixed.
  3. 2WAY-SQL has the feature that, by embedding binding information in SQL comments, the SQL can be executed (tested) directly as normal SQL.
  4. The [Type inference mode] check box is provided for testing the type-specifying APIs, so normally there is no need to use it. The type information specified for the API is inferred automatically by the default type inference algorithm (.NET type → DBType specific to each data provider).
  5. The caption of the message box shows the source of the SQL to execute (from the TextBox or from the open file). Note that when executing from a file, a different SQL is executed unless the contents of the TextBox are saved to the file first.
  6. Unlike others (Oracle, SQL Server), the DB2 data provider requires the leading symbol of the parameter to be included in the parameter name, but this difference is absorbed by the D layer components. The HiRDB data provider supports only ordinal binding, but this framework allows only name binding.
  7. For details on the API, see chapter 3 of the "User Guide (Developers edition)".

-End-

Clone this wiki locally