SQLCLR using the wrong version of the .NET Framework

后端 未结 6 1906
心在旅途
心在旅途 2020-12-05 17:54

During a recent restart of our development server the SQL Server started using .NET 4.0 for the SQLCLR. This means that nothing using the CLR in SQ

6条回答
  •  庸人自扰
    2020-12-05 18:42

    I experienced the same annoying problem. None of the Geography/Geometry stuff in my database worked. Took me some unsuccesfull reinstalls of SQL server to finally (some weeks later!) find the following key in my registry had been set to '1'

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\OnlyUseLatestCLR

    when I reset it to '0', and rebooted the machine, things worked again!

    Hans

提交回复
热议问题