Dedicated SQL Server Hosting Specialist LiveZilla Live Help
Sales: sales@dedicatedsqlserver.com
Support: support@dedicatedsqlserver.com
Phone: 409-877-4238



Cannot delete SQL Server User Defined Data Type; Cannot drop type 'dbo.xxx' because it is currently in use.

Problem

You got the following error message when you tried to delete a user defined data type in SQL Server. You also got a empty list when you view the dependencies.

        Msg 3732, Level 16, State 1, Line 3
        Cannot drop type 'dbo.xxx' because it is currently in use.
    

Solution

You need to find out all dependent objects and change them. Here is the sql script.

        SELECT o.name as 'Table', c.name as 'Column' 
        FROM sys.columns c
        Join sys.objects o On o.object_id = c.object_id
        Join sys.types t On t.user_type_id = c.user_type_id
        Where t.name = 'your_type'    
    

Navigator

Other How-Tos
External Windows Resources
External SQL Server Resources
External Webmaster Resources
External Developer Resources

Express SQL Server

CPU: Intel Core 2 Duo E8400
CPU Speed: 3.00GHz
Cache: 6MB
RAM: 4GB RAM
Disk: 2x320GB SATA
RAID: RAID 1
Bandwidth: 1000GB
Win2008 Web or Win2003 STD: Free
IP Addresses: 8
Monthly: $149.00

Detail...

Standard SQL Server

CPU: Quad-Core Xeon E5410
CPU Speed: 2.33GHz
Cache: 12MB
RAM: 4GB RAM
Disk: 2x146GB SCSI
RAID: RAID 1
Bandwidth: 1500GB
Win2008 Web or Win2003 STD: Free
IP Addresses: 8
Monthly: $259.00

Detail...