zoukankan      html  css  js  c++  java
  • SQL Set Language TransactSQL 設置國家語言

    http://technet.microsoft.com/en-us/library/aa259215%28SQL.80%29.aspx
    http://www.sqlusa.com/bestpractices/setdefaultlanguage/
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=59051
    http://msdn.microsoft.com/en-us/library/ms187335.aspx
    http://msdn.microsoft.com/en-us/library/aa259642%28v=sql.80%29.aspx

    -- Setting default language for login
    
    use master
    
    EXEC sp_defaultlanguage 'kimberlyhay', 'us_english'
    
    GO
    
    -- SQL Server 2005 and onward
    
    ALTER LOGIN kimberlyhay WITH DEFAULT_LANGUAGE = British;
    
    GO
    
    -- Get languages information
    
    EXEC sp_helplanguage
    
    ------------
    
    -- Languages in SQL Server 2008 with dateformat
    
    SELECT LanguageID = langid,
    
           name,
    
           alias,
    
           dateformat
    
    FROM     sys.syslanguages
    
    ORDER BY langid
    
    GO
    
    -- Results
    LanguageID 	name 	alias 	dateformat
    0 	us_english 	English 	mdy
    1 	Deutsch 	German 	dmy
    2 	Fran?ais 	French 	dmy
    3 	日本語 	Japanese 	ymd
    4 	Dansk 	Danish 	dmy
    5 	Espa?ol 	Spanish 	dmy
    6 	Italiano 	Italian 	dmy
    7 	Nederlands 	Dutch 	dmy
    8 	Norsk 	Norwegian 	dmy
    9 	Português 	Portuguese 	dmy
    10 	Suomi 	Finnish 	dmy
    11 	Svenska 	Swedish 	ymd
    12 	?e?tina 	Czech 	dmy
    13 	magyar 	Hungarian 	ymd
    14 	polski 	Polish 	dmy
    15 	rom?n? 	Romanian 	dmy
    16 	hrvatski 	Croatian 	ymd
    17 	sloven?ina 	Slovak 	dmy
    18 	slovenski 	Slovenian 	dmy
    19 	ελληνικ? 	Greek 	dmy
    20 	български 	Bulgarian 	dmy
    21 	русский 	Russian 	dmy
    22 	Türk?e 	Turkish 	dmy
    23 	British 	British English 	dmy
    24 	eesti 	Estonian 	dmy
    25 	latvie?u 	Latvian 	ymd
    26 	lietuvi? 	Lithuanian 	ymd
    27 	Português (Brasil) 	Brazilian 	dmy
    28 	繁體中文 	Traditional Chinese 	ymd
    29 	??? 	Korean 	ymd
    30 	简体中文 	Simplified Chinese 	ymd
    31 	Arabic 	Arabic 	dmy
    32 	??? 	Thai 	dmy
    
    ------------
    
     --季度
    select datename(quarter,getdate())
    --季度
    select DATEPART(quarter,getdate()) -- Setting default database for login EXEC sp_defaultdb 'kimberlyhay', 'AdventureWorks' -- SQL Server 2005 and SQL Server 2008 ALTER LOGIN kimberlyhay WITH DEFAULT_DATABASE = AdventureWorks2008; ------------顯示各國語言的星期幾(2000,2005,2008版本支持)Geovin Du 塗聚文注 --顯示語言周幾 SET LANGUAGE swedish select datename(weekday,getdate()) -- SET LANGUAGE 简体中文 select datename(weekday,getdate())
    哲学管理(学)人生, 文学艺术生活, 自动(计算机学)物理(学)工作, 生物(学)化学逆境, 历史(学)测绘(学)时间, 经济(学)数学金钱(理财), 心理(学)医学情绪, 诗词美容情感, 美学建筑(学)家园, 解构建构(分析)整合学习, 智商情商(IQ、EQ)运筹(学)成功.---Geovin Du(涂聚文)
  • 相关阅读:
    JS 实现页面跳转
    JavaScript 获取指定的cookie值
    Jquery为单选框checkbox绑定单击事件
    “25岁博导”是“破五唯”的 正面榜样 还是 反面教材 ???
    国产软件如何让人再次失望——!20824 mindspore1.3.0gpu version can not compile from source code, because openmpi source code has bug
    sqlserver触发器引起的死锁问题
    Oracle客户端tnsnames.ora连接配置
    win7 调整C盘大小,不使用PQ
    C# 适合vs 2008和vs 2010的变量高亮highlight工具
    C# Response.Redirect引起的错误
  • 原文地址:https://www.cnblogs.com/geovindu/p/2144298.html
Copyright © 2011-2022 走看看