COBES0222 Invalid Framework target - SQL applications must be built to target the 4.0 .NET Framework.

問題
SQL アプリケーションのコンパイル時に、ILCLR コンパイラ指令値に 2 が指定されています。SQL アプリケーションでは、SQL(ILCLR) コンパイラ指令オプションに 4 を設定して、.NET Framework バージョン 4.0 を指定する必要があります。
解決方法
ILCLR 指令を 4 に設定して、アプリケーションを再コンパイルします。

Support for .NET Framework versions 3.0 and 3.5, and for the CLR v2 has been deprecated. The option 2 of the ILCLR directive has also been deprecated.