1

I'm developing a Windows app in Visual Studio 2012. It opens connection to SQL Server.

app.config is set to use en-US for exception messages and it works:

<appSettings> 
    <add key="DefaultCulture" value="en-US"/>
    ...
</appSettings> 

But when SQL Server throws an exception, its message isn't in English.

How can I, from C#, tell SQL Server, to send me proper messages?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Hikari
  • 3,797
  • 12
  • 47
  • 77
  • 2
    is your DB default language other? – wiretext Jul 27 '15 at 18:15
  • Why do you care? Exception messages are for developers, and should not be visible to the users anyway... – Zohar Peled Jul 27 '15 at 18:57
  • http://stackoverflow.com/questions/15705983/how-to-change-default-language-for-sql-server But this seem will stay in config, Seem cannot change language dynamically – Jason Lou Jul 27 '15 at 20:08
  • The MSSQL server I use unfortunately is configured for portuga... portuga error messages are hard to find on Google and very badly translated, I hardly understand what they mean. – Hikari Jul 28 '15 at 17:47
  • I care... because I'm developer? Because I must see what's wrong to fix it? – Hikari Jul 28 '15 at 17:47

0 Answers0