Failed to CREATE AN ASSEMBLY in SQL

前端 未结 5 691
走了就别回头了
走了就别回头了 2021-01-01 12:51

I\'ve already dived into SQL clr programming. Unfortunately my first attempt is troubled. My C# assembly code is just so:

enter code here
public partial clas         


        
5条回答
  •  甜味超标
    2021-01-01 13:07

    Short answer : set Sql Server version and .Net Framework version on project property.

    First of all you have to check set your project property. in project property set the version of sql server that you want to create CLR for it. then choose .Net Framework version . for example if you want to create CLR for SQL Server 2008 you have to set .Net Framework to 3.5 and for 2005 choose .Net 2.0. i hope this solution help you.

提交回复
热议问题