Data base encodings
am 21.06.2007 23:48:07 von maarten
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,
Maarten
Re: Data base encodings
am 22.06.2007 00:18:23 von Erland Sommarskog
maarten (maarten.mostert@wanadoo.fr) writes:
> 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/prodtechnol/sql/2005/downlo ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books .mspx