开发者

SQL Server: How to get a subitem of sp_helplanguage?

开发者 https://www.devze.com 2022-12-22 22:22 出处:网络
Question: I c开发者_JAVA技巧an get the SQL Server database language by querying: SELECT @@language

Question: I c开发者_JAVA技巧an get the SQL Server database language by querying:

SELECT @@language 

And I can get further info via

EXEC sp_helplanguage

How can I query for a column of sp_helplanguage where name= @@language

I do SELECT * FROM sp_helplanguage WHERE name='DEUTSCH'

but that obviously doesn't work.

What's the correct way to query it ?


You need to query the underlying system catalog table directlry:

SELECT * FROM sys.syslanguages WHERE name='DEUTSCH'
0

精彩评论

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