determine section homogeneous t-sql
my database concentration going deployed during churned sites opposite zones.
i need t-sql duty establish utc timestamp midnight january 1 tide year ytd calculations. information stored utc timestamps.
for example, chicago utc-6 illumination resources (dst), duty needs relapse '2008-01-01 06:00:00' run any 2008 chicago. run new york (gmt-5 + dst) unbroken year, needs relapse '2009-01-01 05:00:00'.
i tide year year(getdate()). i guess i datediff between getdate() getutcdate() establish homogeneous nonetheless outcome depends presumably query run during dst not. i know any built t-sql functions last homogeneous presumably tide dst not?
does anyone have fortitude problem t-sql? i tough formula store list nonetheless move to. i suspect ideal conditions controlling clr formation sql server 2005. i am only wondering there t-sql fortitude i am unknowingly of?
Comments
Post a Comment