开发者

SQL Server: How to get a subitem of sp_helplanguage?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜