Answers for "drop table cascade constraints sql server"

SQL
1

drop table with constraints

1. 'First Drop contrstraints like this'
ALTER TABLE table_name
DROP CONSTRAINT constraint_name;
2. 'Then drop table'
DROP TABLE table_name;
Posted by: Guest on February-19-2021
1

sql cascade delete sql

ALTER TABLE dbo.T2
   DROP CONSTRAINT FK_T1_T2   -- or whatever it's called

ALTER TABLE dbo.T2
   ADD CONSTRAINT FK_T1_T2_Cascade
   FOREIGN KEY (EmployeeID) REFERENCES dbo.T1(EmployeeID) ON DELETE CASCADE
Posted by: Guest on May-26-2021

Code answers related to "drop table cascade constraints sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language