You are not Logged in
Would you like to Login or Register

Today is: 10 February 2012
Check this months hot topics

CLR Deployment Fails

This drove me mad!

I was getting this error:-

Deploy error SQL01268: .Net SqlClient Data Provider: Msg 325, Level 15, State 1, 
Procedure 'procedurename', Line 5 Incorrect syntax near 'EXTERNAL'. 
You may need to set the compatibility level of the current database to a higher value
to enable this feature. See help for the SET COMPATIBILITY_LEVEL option of ALTER DATABASE.

Changed everything one at a time and eventually found the solution.

Check your compatibility level in your SQL Database

sp_dbcmptlevel 'thedatabasename' 

In my case I found that it was set to 80.

To solve this, it should be 90 or above.

sp_dbcmptlevel 'thedatabasename', 90

Fixed and deployed!

kick it on DotNetKicks.com del.icio.us digg Mister Wong YahooMyWeb Reddit Furl Spurl blogmarks
Ric Hayman MCPD Skype
Author : Ric Hayman MCPD
Published : 26 June 2010

Ric is an MCPD Microsoft Certified Professional Developer with over 25 years commercial development experience using Microsoft technologies.

Add Comment

Enter your comment below and it will be submitted for moderation.

Your Name

Add Tag

Please enter tags for this article, seperated by semi-colon ;

View Tag's by : # articles | # views

More Publications

Enabling TRUSTWORTHY on a SQL 2005 Database
Paul Hayman - 15/06/2006
Writing CLR Stored Procedures in C#
Paul Hayman - 15/06/2006
CLR Stored Procedure for searching files
Paul Hayman - 16/06/2006
Enabling CLR execution in SQL Server
Paul Hayman - 15/06/2006
CLR Deployment Fails
Ric Hayman MCPD - 26/06/2010