Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I am trying to call a .dll code from my Sql Stored procedure . When I google I came across one link and tried in that manner.
Link

http://blog.sqlauthority.com/2008/10/19/sql-server-introduction-to-clr-simple-example-of-clr-stored-procedure/[^]

But I tried CLR concept and my visual studio is giving the following 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.
Deploy error SQL01234: The database version is not supported.



Softwares I have used

Visual Studio 2010
.Net FrameWork 4.0 (Tried all frameworks)
Sql 2008R2



Please advice me if any one know about CLR deployment
Posted
Comments
Kornfeld Eliyahu Peter 12-Nov-14 5:31am    
Check CLR version using this query: select * from sys.dm_clr_properties
Look also for the 'state' value!
Richard Deeming 12-Nov-14 11:07am    
SQL 2008 R2 uses .NET Framework 2.0/3.5 - you'll need to recompile your assembly to target that framework version.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900