RDBMS Information - Common to all RDBMS - Get the character set

Purpose

This page help you to get the character set of an RDBMS

For more information, refer to:

Applicable in CAST Version

ReleaseYes/No
8.3.x
8.2.x
8.1.x
8.0.x

Applicable RDBMS

RDBMSYes/No
Oracle Server
Microsoft SQL Server
CSS2

Details

Depending on the RDBMS run one of the following queries:

Query for CSS2

SELECT NAME, 
       setting 
FROM   pg_settings 
WHERE  NAME = 'server_encoding'

Query result example

name setting


“server_encoding”; “UTF8”

Query result interpretation

The parameter “server_encoding” have the value “UTF8”

Query for Oracle

SELECT * 
FROM   v$nls_parameters 
WHERE  parameter = 'NLS_CHARACTERSET'

Query result example

PARAMETER VALUE


NLS_CHARACTERSET WE8MSWIN1252

Query result interpretation

The parameter NLS_CHARACTERSET have the value WE8MSWIN1252

Notes/comments

Related Pages