SQL 2012 - Getting "Deploy error SQL01234: The database version is not supported" when deploying CLR

  • I'm using SQL Server Data Tools on my workstation to build a simple CLR, and when I deploy it to our SQL 2012 SP1 Server (running on Win Server 2012) I'm getting this error:

    The following error might appear if you deploy a SQL CLR project that was built for a version of the .NET Framework that is incompatible with the target instance of SQL Server: "Deploy error SQL01268: CREATE ASSEMBLY for assembly failed because assembly failed verification". To resolve this issue, open the properties for the project, and change the .NET Framework version.

    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlClr.targets(96,5): Deploy error SQL01234: The database version is not supported.

    The server has both .Net 3.5 and 4.0 and I've used both in the Project to no avail. Also I've seen this when using Visual Studio 2010 without going through Data Tools, but I'm creating this project completely in Data Tools so I'm unsure why I'm getting this.

    Update: I'm downloading the latest version of Data Tools from http://www.microsoft.com/en-us/download/details.aspx?id=36843 so I'll see if that makes any difference.

    Any suggestions? Thanks.

  • I was going to suggest getting the latest SSDT so I am curious if that fixed it.

    I did find a few links of others having this same problem, not directly using SSDT, but using VS2010, which seems to be what is on your system:

    http://www.sqlservercentral.com/Forums/Topic1329543-2799-1.aspx

    http://social.technet.microsoft.com/Forums/sqlserver/en-US/d5884d59-4b59-4f2c-a2d6-a951a82c2ce9/net-framework-needed-to-deploy-sqlclr-program-to-sql-server-2012-instance?forum=sqlsetupandupgrade

    http://www.sqlnotes.info/2012/04/27/deploy-clr-in-sql-server-2012/

    Please let us know if you get this working.

    Take care,

    Solomon...

    SQL#https://SQLsharp.com/ ( SQLCLR library ofover 340 Functions and Procedures)
    Sql Quantum Lifthttps://SqlQuantumLift.com/ ( company )
    Sql Quantum Leaphttps://SqlQuantumLeap.com/ ( blog )
    Info sitesCollations     •     Module Signing     •     SQLCLR

  • Thanks Solomon. Arg, I just noticed this went under the SQL Server 2005 section... so glad you saw it 🙂 If a Moderator see's this and doesn't mind moving this to the appropriate section I'd appropriate it. I'd rather not cross post, but I might not get as many views given I mistakenly put this in the wrong spot.

    Also thanks for the links, but I've already gone through those links with no luck. I seem to have all components installed suggested by them and other sites, and even after reinstalling various components I'm getting the same thing.

    Also something to note, the server I'm deploying to has both a SQL 2008 R2 and SQL 2012 instance installed, and i'm able to deploy CLR packages to SQL 2008 R2 without issue .. it's just SQL 2012 that's having an issue. Also I'm using Data Tools which gets installed with SQL 2012 and not BIDS, so I know I'm using the correct IDE. I downloaded Data Tools for Visual Studio 2012, but opening the CLR project gives no options to deploy to the SQL Server ... and there's no option to convert it to a SQL Project.

  • As far as I know, this is the only CLR forum here; there isn't one per each version of SQL Server.

    I believe they changed the terminology as well in terms of getting your projects out to the database. I started on VS 2005 or 2008 and it was "Deploy". Then I upgrade to VS 2012 and they have both "Deploy" and "Publish" options. The "Deploy" option doesn't do anything. The "Publish" option runs SSDT.

    Another thought: under Project properties there are options for both "Target Framework" (for .Net) as well as "Target Platform" for what version of SQL Server to use. Are both of those set correctly?

    SQL#https://SQLsharp.com/ ( SQLCLR library ofover 340 Functions and Procedures)
    Sql Quantum Lifthttps://SqlQuantumLift.com/ ( company )
    Sql Quantum Leaphttps://SqlQuantumLeap.com/ ( blog )
    Info sitesCollations     •     Module Signing     •     SQLCLR

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply