Re: Related table entries deleted when I deleted a table. Why?
From: Larry Woods (larry_at_lwoods.com)
Date: 11/24/04
- Next message: Larry Woods: "Re: Related table entries deleted when I deleted a table. Why?"
- Previous message: Andrew John: "Re: UTC Date"
- In reply to: Tibor Karaszi: "Re: Related table entries deleted when I deleted a table. Why?"
- Next in thread: Tibor Karaszi: "Re: Related table entries deleted when I deleted a table. Why?"
- Reply: Tibor Karaszi: "Re: Related table entries deleted when I deleted a table. Why?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Nov 2004 05:00:10 -0700
I used a "DELETE" statement in Query Analyzer. I can't (or WON'T) recreate
this because it is a production server. And the problem wasn't discovered
for some time so backups are questionable. I have checked a backup database
on a test system that has a copy of the production database and there are no
"Cascading" options set in these tables either.
Strange...
Larry Woods
"Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> wrote in
message news:eeCyOAX0EHA.3072@TK2MSFTNGP11.phx.gbl...
> Did you delete the table (DROP TABLE) or deleted all rows from the table?
In any case, this
> shouldn't happen. You cannot drop a table to which you have references.
And you cannot remove a row
> for which you have referencing row (if you don't have cascade).
>
> How did you do the operation? Query Analyzer? Enterprise Manager? Some
other application? Can you
> reproduce this?
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
>
> "Larry Woods" <larry@NOSPAMlwoods.com> wrote in message
> news:OMqcu3W0EHA.4004@tk2msftngp13.phx.gbl...
> > I deleted a table and it looks like ALL table entries from a related
table
> > that were deleted. I checked the relation that was defined in the
deleted
> > table and the "Cascading Update Related Fields" and "Cascade Delete
Related
> > Records" were NOT checked. "Enforce relationship for INSERT's and
UPDATES
> > WAS checked, as well as "Enforce relationship for replication." were
> > checked.
> >
> > Should the related table records have been deleted?
> >
> > TIA,
> >
> > Larry Woods
> >
> >
>
>
- Next message: Larry Woods: "Re: Related table entries deleted when I deleted a table. Why?"
- Previous message: Andrew John: "Re: UTC Date"
- In reply to: Tibor Karaszi: "Re: Related table entries deleted when I deleted a table. Why?"
- Next in thread: Tibor Karaszi: "Re: Related table entries deleted when I deleted a table. Why?"
- Reply: Tibor Karaszi: "Re: Related table entries deleted when I deleted a table. Why?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|