Re: Regarding table Order
- From: "Jens" <Jens@xxxxxxxxxxxxxxxx>
- Date: 15 Dec 2005 23:46:49 -0800
Like said in the BOL:
"You cannot use TRUNCATE TABLE on a table referenced by a FOREIGN KEY
constraint; instead, use DELETE statement without a WHERE clause."
Therefore the only way is to delete the FK and do the truncate and
recreate the FK, or to use an insert statement instead.
HTH, jens Suessmeyer.
.
- Follow-Ups:
- Re: Regarding table Order
- From: pankaj_wolfhunter
- Re: Regarding table Order
- References:
- Regarding table Order
- From: pankaj_wolfhunter
- Regarding table Order
- Prev by Date: Re: Regarding table Order
- Next by Date: Re: Regarding table Order
- Previous by thread: Re: Regarding table Order
- Next by thread: Re: Regarding table Order
- Index(es):
Relevant Pages
|