I'm trying this code
Drop Table Inventory
I get error:
Could not drop object 'Inventory' because it is referenced by a FOREIGN KEY constraint.
I'm trying this code
Drop Table Inventory
I get error:
Could not drop object 'Inventory' because it is referenced by a FOREIGN KEY constraint.
You need to Drop the Constraint first..
then You can Drop the table
Just try this
use this
First you have to
Drop
the table's constraints and then tabledrop the foreign key constraint from subtable and then drop the main table