How does one use TimeZoneInfo in a SQLCLR assembly in SQL Server 2012

前端 未结 2 1749
别跟我提以往
别跟我提以往 2020-12-19 17:32

I want to implement time zone conversion within SQL Server 2012. However, TimeZoneInfo is marked with the MayLeakOnAbort attribute. This causes a runtime

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 17:38

    I know the question was how to use TimeZoneInfo in a SQLCLR context, but thought I'd just add that while TimeZoneInfo is not supported (as @MattJohnson wrote elegantly), TimeZone is still available for use without the need to make the assembly unsafe.

提交回复
热议问题