Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9190057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:22:30+00:00 2026-06-17T20:22:30+00:00

I have a DB in SQL 2008 R2, I created an SSDT SQL database

  • 0

I have a DB in SQL 2008 R2, I created an SSDT SQL database project by importing an existing DB. This DB has some CLR routines that are using System.Drawing V2.0.

When deploying the project locally, I get the following error.

SQL72014: .Net SqlClient Data Provider: Msg 6586, Level 16, State 1, Line 1 Assembly ‘SystemDrawing’ could not be installed because existing policy would keep it from being used.

I’m not sure what policy to look for.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:22:31+00:00Added an answer on June 17, 2026 at 8:22 pm

    Your t-sql script should be the following

    CREATE DATABASE [test]
    GO
    ALTER DATABASE [test] SET TRUSTWORTHY ON WITH ROLLBACK IMMEDIATE
    GO
    USE [test]
    GO
    ALTER DATABASE [test] SET TRUSTWORTHY ON
    GO
    exec sp_configure 'show advanced options', 1;
    GO
    RECONFIGURE;
    GO
    exec sp_configure 'clr enabled', 1;
    GO
    RECONFIGURE;
    GO
    CREATE ASSEMBLY [System.Drawing]
    AUTHORIZATION [dbo]
    FROM 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Drawing.dll'
    WITH PERMISSION_SET = UNSAFE
    GO
    

    But note if you have installed .net 4 you have to use that one and its probably that you are using the wrong dll for the sql server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created SQL Server 2008 Database project using visual studio 2010. after build
I have a database that I have created using SQL Server Developer 2008. I
I have created a SQL query that runs on SQL Server 2008. For some
I have created a database test with some tables in MS SQL Server 2008
I have a standard sql server 2008 project which has been created using vs2010.
I have visual Studio 2008 web project with sql 2008 (3.5). I have created
I have created a T-SQL query in SQL Server 2008 R2 that is a
I have a report that I created in SQL Server Reporting Services 2008. I
I have this table structure on a SQL Server 2008 R2 database: CREATE TABLE
I have a database (sql 2008 mdf file), a class library project with an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.