How to make this CLR work with 2005?

后端 未结 1 1565
無奈伤痛
無奈伤痛 2020-12-21 18:57

I am trying to make a clr stored procedure for a sql 2005 database that uses .net 3.5 assemblies

So first I had to change sql 2005 to recognize system.core as unsafe

相关标签:
1条回答
  • 2020-12-21 19:40

    To get this to work you'd have to set it as UNSAFE.

    Apparently, some TimeZoneInfo methods have HostProtectionAttribute set which means they can't be used in SQL Server CLR code.

    Unless you decide "I don't care about stability and know better". I take no responsibility if your server becomes a smoking crater in the ground if you use UNSAFE...

    0 讨论(0)
提交回复
热议问题