kapil_kk (10/18/2012)
I think after disabling constraint of both tables truncate should work..
No, it shouldn't. Disabled constraint is still a constraint. For a truncate the table must not be referenced by a foreign key constraint at all.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability