Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

How to: Deploy SQL Server CLR Integration Database Project Items in Referenced Assemblies

You cannot deploy SQL Server Common Language Run-time (SQL CLR) database project items in referenced assemblies by using the deployment features in Visual Studio. You must use the Transact-SQL Create Assembly statement instead. For example, if one SQL CLR database project contains a reference to another SQL CLR database project, you cannot use the deploy command in the first project to deploy the items in the second (referenced) project.

To deploy SQL CLR project items in referenced assemblies

  1. Build the items in your project, a well as any items that have to be built in the referenced assembly.

  2. Deploy the items using the Transact-SQL Create Assembly statement, passing in the information for the DLL that you want to deploy to the SQL Server. For more information, see the Create Assembly (Transact-SQL) topic on the Microsoft Web site.

    Important noteImportant

    You must have the appropriate permissions to deploy a new or updated assembly to a database. For more information, see Required Permissions for Database Features of Visual Studio.

Community Additions

© 2015 Microsoft