Wednesday, March 7, 2012

Data base encodings

Hi,

I am looking to check and set the encoding of the database using sql
commands that work both for SQL-Server and JET.

something equivalent to the postgreSQL commands:

'SHOW server_encoding'

Thanks in advance,

Maartenmaarten (maarten.mostert@.wanadoo.fr) writes:

Quote:

Originally Posted by

I am looking to check and set the encoding of the database using sql
commands that work both for SQL-Server and JET.
>
something equivalent to the postgreSQL commands:
>
'SHOW server_encoding'


In SQL Server you can set the collation per table column if you like.
But there is a default collation for the server, which you can find
with

SELECT serverproperty('Collation')

The default collation for a database can be determined with:

SELECT databasepropertyex('Db', 'Collation')

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

No comments:

Post a Comment