Question : Getting error message when trying to drop user from a database

I am trying to drop a user from a database. I am getting the error message:
Drop failed for User 'xxxx'
The database principal owns an assembly and cannot be dropped. (Microsoft SQL Server, Error: 15154)

But when I so a query to view the assemblies (select * from sys.assembly_modules) there are no assemblies.
I also checked and there are no schemas for this user.

The user did create some tables and stored procedures. But all sp and tables have a prefix dbo.
Is there an easy way to query to find if the user is an owner of any sp or tables?
Any other ideas as to why I am getting this error?

Answer : Getting error message when trying to drop user from a database

Have you tried creating another user (like a test user) as the database owner.  Use this script

USE <DatabaseName>
GO
sp_changedbowner '<NewLogin>'

and then drop the old user.  
Random Solutions  
 
programming4us programming4us