Get TimeZone SQL Server


/ Published in: SQL
Save to your folder(s)

Get TimeZone SqlServer


Copy this code and paste it in your HTML
  1. DECLARE @TimeZone VARCHAR(50)
  2. EXEC MASTER.dbo.xp_regread 'HKEY_LOCAL_MACHINE',
  3. 'SYSTEM\CurrentControlSet\Control\TimeZoneInformation',
  4. 'TimeZoneKeyName',@TimeZone OUT
  5. SELECT @TimeZone

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.