I have a DB in SQL 2008 R2, I created an SSDT SQL database project by importing an existing DB. This DB has some CLR routines that are using System.Drawing V2.0.
When deploying the project locally, I get the following error.
SQL72014: .Net SqlClient Data Provider: Msg 6586, Level 16, State 1, Line 1 Assembly ‘SystemDrawing’ could not be installed because existing policy would keep it from being used.
I’m not sure what policy to look for.
Your t-sql script should be the following
But note if you have installed .net 4 you have to use that one and its probably that you are using the wrong dll for the sql server.