Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Cosmo — — source: Informix-list mailing list archive (1991-1998)
Juan R. Guzman wrote:
>
> If I have DR upp and running, how can I, under Informix 7.11UC1, with a
> select statement, find out if the server I'm on is the primary or> secondary?
When you connect to the database the sqlda structure has a flag that
will tell you if it is a primary or secondary server. It is the seventh
field of the sqlwarn structure (sqlda.sqlwarn[6] ESQL/C,
sqlda.sqlwarn[7]
in 4GL). See the Guide to SQL Tutorial (P. 5-10 in the 7.1 fine manual
set).
Cosmo
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.