troubleshooting Question

Error creating assembly.

Avatar of Blowfelt82
Blowfelt82 asked on
AssemblyMicrosoft SQL Server 2005
3 Comments1 Solution1114 ViewsLast Modified:
I am trying to create an assembly within Microsoft SQL Management Studio, unfortunately I do not have much experience with this and am a bit lost.

I have two databases setup, one of which works when I setup the assembly, so I assume that the server setup and permissions etc are OK in order to setup assemblies. Unfortunately on the other database I am getting the following error...

Msg 10327, Level 14, State 1, Line 2
CREATE ASSEMBLY for assembly 'TimeZones' failed because assembly 'TimeZones' is not authorized for PERMISSION_SET = UNSAFE.  The assembly is authorized when either of the following is true: the database owner (DBO) has UNSAFE ASSEMBLY permission and the database has the TRUSTWORTHY database property on; or the assembly is signed with a certificate or an asymmetric key that has a corresponding login with UNSAFE ASSEMBLY permission.
Msg 15151, Level 16, State 1, Line 2
Cannot alter the assembly 'TimeZones', because it does not exist or you do not have permission.
Msg 15151, Level 16, State 1, Line 2
Cannot alter the assembly 'TimeZones', because it does not exist or you do not have permission.
Msg 15151, Level 16, State 1, Line 2
Cannot alter the assembly 'TimeZones', because it does not exist or you do not have permission.
Msg 15151, Level 16, State 1, Line 2
Cannot alter the assembly 'TimeZones', because it does not exist or you do not have permission.
Msg 15096, Level 16, State 11, Procedure sp_addextendedproperty, Line 38
Could not find object 'TimeZones' or you do not have required permission or the object is not valid for adding extended property.
Msg 15096, Level 16, State 11, Procedure sp_addextendedproperty, Line 38
Could not find object 'TimeZones' or you do not have required permission or the object is not valid for adding extended property.

I have set trustworthy on, I have enabled CLR on my machine, I have set the database owner with UNSAFE ASSEMBLIES permission, but none of this seems to work... Does anyone have any trouble shooting ideas on this as I am stuck...

First person to get the script to run gets the points.

Thanks in advance.
ASKER CERTIFIED SOLUTION
Daniel Wilson

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros