When deploying a SQL project with Visual Studio 2008 we create a .sql file.
In the project properties we have set the deploy action: Create a deployment script. When building and deploying the project the .sql is generated as expected. When inspecting the generated code I see the following SQL code:
CREATE ASSEMBLY [System.Core] AUTHORIZATION [dbo] FROM 0x4D5A9.... WITH PERMISSION_SET = SAFE;
Executing this piece of code will throw the following error.
CREATE ASSEMBLY failed because assembly 'System.Core' is a system assembly. Consider creating a user assembly to wrap desired functionality.
Why is this code generated in the first place and how can I prevent this code to be generated? (As far as I know we don't have any SQLCLR stored procedures OR LINQ in the project)