SQL parameters: sqlouterjoins

Startup parameters change the behavior of the Service Manager server. You can always set a startup parameter from the server's operating system command prompt.

Parameter

sqlouterjoins

Description

When querying two tables at the same time, Service Manager by default generates a SELECT statement with a JOIN clause to join the tables together. This parameter provides options on how two tables are joined together when being queried.

Caution: In some cases, generating a LEFT OUTER JOIN when querying two tables at the same time causes performance degradation.

Valid if set from

Server's operating system command prompt

Initialization file (sm.ini)

Requires restart of the Service Manager server?

No

Default value

2

Possible values

0 (Generates a LEFT OUTER JOIN clause only when querying a multi-row array table and one other table in the same query. Otherwise, generates just a JOIN clause.)

1 (Always generates a LEFT OUTER JOIN clause when querying two tables in the same query.)

2 (Never generates a LEFT OUTER JOIN clause; always generates just a JOIN clause.)

Example usage

Using option 2 (default) to generate a JOIN clause when querying tables M1 and A3 (SELECT * FROM M1 JOIN A3 ON...).

Command line: sm -httpPort:13080 -sqldb:dbserver -sqlouterjoins:2

Initialization file: sqlouterjoins:2

Related topics

System parameters

Related topics

Enter a parameter in the sm.ini file

Related topics

Database parameters