Sql-server – Identify whether the given servers time is in daylight saving or not

sql server

I have to get local date data across many servers scattered around the globe and identify whether it is in daylight saving mode or not ?

Need help.

Best Answer

This is solved in SQL Server 2016 with AT TIME ZONE. And I wrote an article about it here: http://sqlperformance.com/2016/07/sql-plan/at-time-zone

In earlier versions you'll probably need some CLR to read that information from the registry.