商标符号未在SQL Server 2014中呈现

时间:2019-05-23 14:57:58

标签: sql-server symbols non-ascii-characters

在我的SQL Server 2014实例上,如果运行

select @@version
select 'None of your Business™'

我得到:

----------------------------------------------------------------------------------------------------------------------------------------------------------

    ------------------------------------------------------------------------------------------------------
    Microsoft SQL Server 2014 (SP2) (KB3171021) - 12.0.5000.0 (X64) 
        Jun 17 2016 19:14:09 
        Copyright (c) Microsoft Corporation
        Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)

(1 row affected)


    ----------------------
    None of your BusinessT

(受影响的1行)

在我运行的本地SQL Server 2017上

select @@version
select 'None of your Business™'

我得到:

-----------------------------------------------------------------------------

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Microsoft SQL Server 2017 (RTM) - 14.0.1000.169 (X64) 
        Aug 22 2017 17:04:49 
        Copyright (C) 2017 Microsoft Corporation
        Developer Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 17763: ) (Hypervisor)


(1 row affected)


----------------------
None of your Business™

(1 row affected)

SQL Server 2014是否仅不处理此字符?除了升级到SQL Server 2014以外,是否还有补丁程序或其他可用的解决方案?有没有一种方法可以修改查询以同时使用两个版本?

select CHAR(0153)

在SQL Server 2017中提供™,但在SQL Server 2014中提供Ö。

0 个答案:

没有答案