When you deploy an SQL project with Visual Studio 2008, we create a .sql file.
In the project properties, we set the deployment action: create a deployment script. When you create and deploy a project .sql is generated as expected. When checking the generated code, I see the following SQL code:
CREATE ASSEMBLY [System.Core] AUTHORIZATION [dbo] FROM 0x4D5A9 .... WITH PERMISSION_SET = SAFE;
Executing this part of the code will result in the following error.
CREATE ASSEMBLY failed because the System.Core assembly is a system assembly. Consider creating a custom assembly to wrap your desired functionality.
Why is this code generated first and how can I prevent this code from being generated? (As far as I know, we do not have any SQLCLR or LINQ stored procedures in the project)
source share