Re: Retrieve collation settings
From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 09/20/04
- Next message: Prabhat: "Re: Bulk Insert With Identity Field"
- Previous message: Adi: "Re: Retrieve collation settings"
- In reply to: Johannes Lebek: "Retrieve collation settings"
- Next in thread: Johannes Lebek: "Re: Retrieve collation settings"
- Reply: Johannes Lebek: "Re: Retrieve collation settings"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 20 Sep 2004 13:40:33 +0200
Yep:
SELECT DATABASEPROPERTYEX (DB_NAME(), 'collation')
-- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ "Johannes Lebek" <reply-to-newsgroup@domain.com> wrote in message news:ONkn4VwnEHA.4004@TK2MSFTNGP10.phx.gbl... > Hi there, > > my problem is that I want to know what is the collation of the database > I connect to. > > I planned to use the following statement: > SELECT DATABASEPROPERTYEX ('MyDatabase', 'collation') > > However, I do not know the name of that database... I connect to J2EE > datasources using JNDI. > > Is there a keyword that can be used as a placeholder for the current > database, like SELECT DATABASEPROPERTYEX (CURRENT_DATABASE, 'collation')? > > Any help is appreciated. > Thanks, > > Johannes
- Next message: Prabhat: "Re: Bulk Insert With Identity Field"
- Previous message: Adi: "Re: Retrieve collation settings"
- In reply to: Johannes Lebek: "Retrieve collation settings"
- Next in thread: Johannes Lebek: "Re: Retrieve collation settings"
- Reply: Johannes Lebek: "Re: Retrieve collation settings"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|