[SOLVED] SQL Foreign Key - deleting problem |
10/24/2011 09:29:03 | |
| PHPRunner General questions | ||
|
M
marimach77 author
Hello, Webpage error details
ALTER TABLE [dbo].[MASTER] WITH CHECK ADD CONSTRAINT [MASTER_SLAVE_fk] FOREIGN KEY([UserLogin]) REFERENCES [dbo].[SLAVE] ([UserLogin])
|
||
|
C
|
cgphp 10/24/2011 |
|
Is the SLAVE table the MASTER of another table ? Try to disable (not to drop) the foreign key constraint: ALTER TABLE dbo.slave_table_name NOCHECK CONSTRAINT slave_constraint_fk; |
|
|
M
|
marimach77 author 10/25/2011 |
Is the SLAVE table the MASTER of another table ?
Try to disable (not to drop) the foreign key constraint: ALTER TABLE dbo.slave_table_name NOCHECK CONSTRAINT slave_constraint_fk;
|
|
|
M
|
marimach77 author 10/25/2011 |
|
Is there another way to get this functionality without SQL FK and constraints? Any PHP events code? |
|