-- select @@LANGUAGE -- 设置为英文环境 SET LANGUAGE N ' English ' SELECT DATENAME(weekday, GETDATE()) as DayOfWeekName 返回: DayOfWeekName Monday -- 设置为简体中文环境 SET LANGUAGE N ' 简体中文 ' SELECT DATENAME(weekday, GETDATE()) as DayOfWeekName 返回: DayOfWeekName 星期一