dbTalk Databases Forums  

Data base encodings

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Data base encodings in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
maarten
 
Posts: n/a

Default Data base encodings - 06-21-2007 , 05:48 PM






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

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Data base encodings - 06-21-2007 , 06:18 PM






maarten (maarten.mostert (AT) wanadoo (DOT) fr) writes:
Quote:
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 (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.