Re: NON LOGGING ? LOGGING ? MODE ANSI ?
Posted in 1995
prateek.srivastava@waterloo.attgis.com wrote :
>how can i find from within an esql/c application if the database is
>logging/nonlogging/ansi. i want to use this information to figure out from within
>the application if BEGIN WORK, COMMIT WORK, etc need to be executed.
SELECT is_unbuff_log,
is_buff_log,
is_ansi,
is_nls
FROM sysdatabases
WHERE name = THE_NAME_OF_THE_DATABASE;
is_unbuff_log = 1 ==> unbuffered logging
is_buff_log = 1 ==> buffered logging
is_ansi = 1 ==> ANSI database
is_nls = 1 ==> NLS database
----------------------------------------------------------------
| Rick Christie | PLATINUM technology, inc. |
| christie@platinum.com | 620 W. Germantown Pike |
| (610) 940-6020 | Suite 200 |
| (610) 940-6021 (fax) | Plymouth Meeting, PA 19462 |
----------------------------------------------------------------