current language MSSQL

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Tomasz Andrzejewski
Posts: 14
Joined: Fri 30 Dec 2011 15:11

current language MSSQL

Post by Tomasz Andrzejewski » Sat 04 Aug 2012 10:36

Hi,

How to set connect string property [Current Language=polski;] using UniDac?
I am using lates 2012 MSSQL Server.

Tomasz Andrzejewski
Posts: 14
Joined: Fri 30 Dec 2011 15:11

Re: current language MSSQL

Post by Tomasz Andrzejewski » Mon 06 Aug 2012 08:15

Is it possible? It is normal property of MSSQL connection string.
I've tried to pass this value via SpecificOptions with no efect.
[SELECT @@Language] returns default database language (in my configuration us_english).
Any ideas?

AndreyZ

Re: current language MSSQL

Post by AndreyZ » Mon 06 Aug 2012 08:59

Hello,

To set the SQL Server language name, you should set the Language SQL Server specific option. Here is a code example:

Code: Select all

UniConnection.SpecificOptions.Values['Language'] := 'polski';
UniConnection.Open;
For more information, please refer to the "UniDAC and SQL Server" article in the UniDAC documentation.

Tomasz Andrzejewski
Posts: 14
Joined: Fri 30 Dec 2011 15:11

Re: current language MSSQL

Post by Tomasz Andrzejewski » Mon 06 Aug 2012 09:13

UniConnection.SpecificOptions.Values['Language'] := 'polski';

Works.

AndreyZ

Re: current language MSSQL

Post by AndreyZ » Mon 06 Aug 2012 11:07

Feel free to contact us if you have any other questions about UniDAC.

Post Reply