Software Engineer, Blogger, Gadgets, Sports, Circket, Movies and Gamer.
Here is how we can get current time zone from sql server
DECLARE @TimeZone VARCHAR(50) EXEC MASTER.dbo.xp_regread 'HKEY_LOCAL_MACHINE', 'SYSTEM\CurrentControlSet\Control\TimeZoneInformation', 'TimeZoneKeyName',@TimeZone OUT SELECT @TimeZone
No comments:
Post a Comment