I have to work on an existing application, comprises of many projects including a database project.
In the statup project, which is a windows app., when making a call to a
USE ;
EXEC sp_configure 'clr enabled' ,1
GO
RECONFIGURE
GO
EXEC sp_configure 'clr enabled' -- make sure it took
GO
USE
GO
EXEC sp_changedbowner 'sa'
USE
GO
ALTER DATABASE SET TRUSTWORTHY ON;