开发者

How can i obtain an Sql Language name from a .Net Culture

开发者 https://www.devze.com 2023-01-16 11:41 出处:网络
Hello i\'m using SQL server full-text search. when i use the FreeText predicate it need the language as parameter, but sql parameters name is different from .net culture names. So my question is How c

Hello i'm using SQL server full-text search. when i use the FreeText predicate it need the language as parameter, but sql parameters name is different from .net culture names. So my question is How can i obtain an Sql开发者_Go百科 Language name from a .Net Culture.


The LCID in the SYS.SYSLANGUAGES view of SQL Server is the same Windows Locale ID returned by the CultureInfo.LCID property in .NET. You can use this LCID as the language_term in your FREETEXT search.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号