| Hi Regina,
This looks like a problem with Rdb. I've recreated your scenario
using Rdb7-ECO 1:
$ mcr sql$
SQL> att 'alias r1 f mf_personnel';
SQL> show connections;
-> RDB$DEFAULT_CONNECTION
SQL> connect to 'alias r1 f mf_personnel' as 'regina';
SQL> show connections;
RDB$DEFAULT_CONNECTION
-> regina
SQL> show connection regina;
Connection: REGINA
%SQL-F-NOSUCHCON, There is not an active connection by that name
(This next shouldn't be necessary since "-> points to regina" but I
tried it anyway)
$ SQL> set connection 'regina';
SQL> show connection regina;
Connection: REGINA
%SQL-F-NOSUCHCON, There is not an active connection by that name
This follows the example in vol 2 of the SQL Ref Manual, pg 6-184
and does not appear to work to me as illustrated.
Thanks, Diane
|
| > SQL> show connection regina;
> Connection: REGINA
> %SQL-F-NOSUCHCON, There is not an active connection by that name
This is because the name of the connection is 'regina', a string in lower case
characters. Contrast with:
> SQL> connect to 'alias r1 f mf_personnel' as 'REGINA';
> SQL> show connections;
> RDB$DEFAULT_CONNECTION
> -> REGINA
> SQL> show connection regina;
> Connection: REGINA
> ....
> Alias R1:
> Identifier character set is DEC_MCS
> Default character set is DEC_MCS
> National character set is DEC_MCS
If you want to use a mixed or lower case connection name, you need to use
delimited identifiers (and tell SQL about it):
> SQL> att 'alias r1 f mf_personnel';
> SQL> show connections;
> -> RDB$DEFAULT_CONNECTION
> SQL> connect to 'alias r1 f mf_personnel' as 'regina';
> SQL> show connections;
> RDB$DEFAULT_CONNECTION
> -> regina
> SQL> show connection regina;
> Connection: REGINA
> %SQL-F-NOSUCHCON, There is not an active connection by that name
> SQL> set quoting rules "sql92";
> %SQL-I-DEPR_FEATURE, Deprecated Feature: " used instead of ' for string literal
> SQL> show connection "regina";
> Connection: regina
> ...
> Alias R1:
> Identifier character set is DEC_MCS
> Default character set is DEC_MCS
> National character set is DEC_MCS
> SQL> show connections;
> RDB$DEFAULT_CONNECTION
> -> regina
|