Windows 10: Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016

Discus and support Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016 in Windows 10 Customization to solve the problem; I was trying out the time zone conversions in SQL Server 2017 and ran across some unexpected results. The same anomalies show up in PowerShell, since... Discussion in 'Windows 10 Customization' started by R,S, Mar 30, 2019.

  1. R,S
    R,S Win User

    Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016


    I was trying out the time zone conversions in SQL Server 2017 and ran across some unexpected results. The same anomalies show up in PowerShell, since they are both using the underlying time zone information in Windows.


    Here is a good example in PowerShell:


    $d = Get-Date '2019-10-26 20:30:00 -04:00' # Eastern Time doesn't fall back to -05:00 until November

    @( [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId($d, 'W. Europe Standard Time'), [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId($d, 'Central Europe Standard Time'), [System.TimeZoneInfo]::ConvertTimeBySystemTimeZoneId($d, 'E. Europe Standard Time') )



    (There are two lines of code there - the first one starting with "$d" and the second one starting with "@(".)


    Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016 9e2cfc85-7afa-4c66-ac7a-c4fbd0641221?upload=true.png


    The same example in SQL Server 2017:


    declare @nyTime datetimeoffset = convert(datetimeoffset, N'2019-10-26 20:30:00.000000 -04:00', 121);

    select @nyTime at time zone N'W. Europe Standard Time' [W. Europe Time],
    @nyTime at time zone N'Central Europe Standard Time' [Central Europe Time],
    @nyTime at time zone N'E. Europe Standard Time' [E. Europe Time];


    Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016 00a19b8b-1126-4d10-ad8b-51d541d0cc4c?upload=true.png


    The result in all three time zones is 2:30 am local time. My understanding is that all of the EU changes to or from Summer time at the same time (through the end of March 2021, at least [end of time changes in EU]), so shouldn't the local time in the adjacent time zones always have offsets that are one hour apart, even on the day that the offsets change?

    The server is running Windows Server 2016 with the February 2019 update KB4487006.


    ***Original title: Unexpected results from time zone conversions***

    :)
     

  2. Downgrade of SQL Server 2017 to SQL Server 2012

    Hi,

    Please suggest me how can i get the licence for SQL Server 2012.

    Currently we have SQL Server 2017 Volume licencing.

    Regards,

    Praveen.
     
    PraveenkumarOPP, Mar 30, 2019
    #2
  3. Brink Win User
    First release candidate of SQL Server 2017 now available


    Source: First release candidate of SQL Server 2017 now available | SQL Server Blog


    See also: What's new in SQL Server 2017 RC1 for Analysis Services | Analysis Services Team Blog
     
    Brink, Mar 30, 2019
    #3
  4. Brink Win User

    Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016

    Cumulative Update #1 for SQL Server 2016 SP1


    Source: Cumulative Update #1 for SQL Server 2016 SP1 | SQL Server Release Services
     
    Brink, Mar 30, 2019
    #4
Thema:

Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016

Loading...
  1. Unexpected results while converting time zones using SQL Server 2017 on Windows Server 2016 - Similar Threads - Unexpected results while

  2. SQL Server 2016 is support on Win 11 SQL Server 2016 was installed on Win 10 and then...

    in Windows 10 Gaming
    SQL Server 2016 is support on Win 11 SQL Server 2016 was installed on Win 10 and then...: Hi,We installed SQL Server 2016 along with the POS application on Windows 10 machines. We are planning to upgrade the systems to Windows 11 and continue using SQL Server 2016 without upgrade to higher versionwith the POS application.Could you please suggest how we can...
  3. SQL Server 2016 is support on Win 11 SQL Server 2016 was installed on Win 10 and then...

    in Windows 10 Software and Apps
    SQL Server 2016 is support on Win 11 SQL Server 2016 was installed on Win 10 and then...: Hi,We installed SQL Server 2016 along with the POS application on Windows 10 machines. We are planning to upgrade the systems to Windows 11 and continue using SQL Server 2016 without upgrade to higher versionwith the POS application.Could you please suggest how we can...
  4. Will the СU32 be released for MS SQL Server 2017?

    in Windows 10 Gaming
    Will the СU32 be released for MS SQL Server 2017?: Hi all.Hope you are doing well!Do you know if Microsoft plans to release the CU32 update package for MS SQL Server 2017?I checked the official website and found that the Mainstream End Date is October 11, 2022, but the Extended End Date is October 12, 2027.As far as I...
  5. SQL Server 2016 Issue

    in Windows 10 Gaming
    SQL Server 2016 Issue: Hi everyone,I've update Security on DPM Window Server 2012R2 with SQL Server 2016, so i've backup the Database first but this is the old system, i don't know if backup the database is enough when i'm searching on internet for backup Database i saw the backup DPM config.So i...
  6. SQL Server 2016 Issue

    in Windows 10 Software and Apps
    SQL Server 2016 Issue: Hi everyone,I've update Security on DPM Window Server 2012R2 with SQL Server 2016, so i've backup the Database first but this is the old system, i don't know if backup the database is enough when i'm searching on internet for backup Database i saw the backup DPM config.So i...
  7. SQL Server Express 2017 Installation Fails

    in Windows 10 Installation and Upgrade
    SQL Server Express 2017 Installation Fails: Hi I am trying to install SQL Server 2017 Express on my Laptop on which I am an Administrator. It just fails with: Unable to install SQL Server setup.exe. Exit code Decimal: -2068052310Error description: An installation package for the product Microsoft SQL Server...
  8. SQL Server Data Tool SSDT 2017 can install on Windows Server 2016 Data center?

    in Windows 10 Installation and Upgrade
    SQL Server Data Tool SSDT 2017 can install on Windows Server 2016 Data center?: Which OS is required to install SQL Server Data Tool SSDT? I have Windows Server 2016 Data center installed in my system. I need to install SSDT 2017. I am not bale to install SSDT 2017 because of this OS issue. My question is which OS is required for installing SSDT 2017?...
  9. SQL server 2017 Express Edition

    in Windows 10 Installation and Upgrade
    SQL server 2017 Express Edition: Hi I have the following problem: I want to install sql server 2017 express and have tried several times but I keep getting the same error. I googled the error but couldn't find any solutions that worked for me. The installer says "Unable to install SQL server (setup.exe)....
  10. SQL Server 2017 now generally available

    in Windows 10 News
    SQL Server 2017 now generally available: uxA6VyrgBnk Microsoft SQL Server 2017 on Linux, Docker and Windows Server is now generally available for purchase and download.It’s a stride forward for our modern and hybrid data platform across on-premises and cloud,” writes Travis Wright, a SQL Server Engineering...