ALTER-CONNECTION

Function

Alters data source logon parameters prior to logon. Can be used to override default connection logon parameters.

Note:

ALTER-CONNECTION is specific to Production Reporting DDO ports only.

Syntax

ALTER-CONNECTION
NAME=connection_name
[DSN={uq_txt_lit|_var}]
[USER={uq_txt_lit|_var}]
[PASSWORD={uq_txt_lit|_var}]
[PARAMETERS=keyword_str=attr_str;
[, keyword_str=attr_str;...]]
[NO-DUPLICATE=TRUE|FALSE] 
SET-GENERATIONS=([{dimension1, hierarchy1}
[,dimensioni, hierarchyi] ...])
SET-LEVELS=([{dimension1, level1} [,dimensioni, leveli] ...])
SET-MEMBERS=([{dimension1, level1} [,dimensioni, leveli] ...])

Arguments

NAME

User-defined name for describing a data source connection.

DSN

Logical data source name recorded in Registry.properties.

USER, PASSWORD

Traditional logon semantics.

PARAMETERS

Keyword-attribute pairs required by data source drivers for logon. Syntax restrictions include delimiting semi-colons (;) and equal signs (=). Keywords must match logon property names for data sources in property files.

NO-DUPLICATE=TRUE|FALSE (default is FALSE)

(Optional) Prevents Production Reporting from creating additional logins to data sources handling previous queries. Creating a new login is the default behavior, allowing a single CONNECTION declaration in a subquery. This behavior, while allowing dynamic logins as needed, causes difficulties when doing DDL (BEGIN-SQL) and DML (BEGIN-SELECT) against temporary tables in some data sources. In such cases, you must fetch from the temporary table using the same login in which it was created. Here, you should code CONNECTION as NO-DUPLICATE=TRUE, and then use that connection in both the table creation logic of BEGIN-SQL and the row fetching logic of BEGIN‑SELECT.

SET-GENERATIONS

Dimension hierarchy for the previously-declared dimension. In the following example:

set-generations=('product',5,'time',1 )

SET-GENERATIONS:

To clear values defined with SET-GENERATIONS, use:

set-generations=()

SET-LEVELS

Extends dimension hierarchies for previously-declared dimensions. Dimensions and hierarchies defined with SET-LEVELS can be literal values only. In the following example:

set-levels=('product',2 )

To clear values defined with SET-LEVELS, use:

set-levels=()

SET-MEMBERS

Returns the members in a dimension, level, or hierarchy whose name is specified by a string. Dimensions and hierarchies defined with SET‑MEMBERS can be literal values only. In the following example:

set-members=('product','all products.drink.alcoholic beverages.beer and wine','time','1997.Q1.2' )

SET-MEMBERS:

To clear values defined with SET-MEMBERS, use:

set-members=()

Examples

alter-connection
  name=SAPR3-1
  password=psswd
parameters=logon.client=600;logon.ashost=starfish;logon.sysnr=
00;logon.language=EN;

Note:

Do not wrap the lines in the 'parameters=' line. Space restrictions dictate the wrapped line in the preceding example.

See Also

DECLARE-CONNECTION