Re: Relationship Question
- From: "Jürgen Germonpré" <ricosjet@xxxxxxxxxxx>
- Date: Fri, 23 Mar 2007 09:36:11 +0100
Thank you once again for your response.
Just after i've posted this.
I've realized I didn't specify this:
I've used your SQL statements by passing them into an connection.Execute
statement in ado.
I've tried to delete the table in the Tables window of Access, just select
and press delete.... that generated the error.
I'm not such an ace in these things but I've tought: what if I do it the
same way as I've created the table: passing "Drop Table Trevors" into the
connection.Execute. That worked alright....
Nevertheless, thanks for your info.
Now, what confuses me a bit is that obviously if you're manipulating a .mdb
through ADO it doesn't result in the same situation as if you would do the
same thing by means of the Access table/query design interface.
Or am I missing a point here ?
JG
"Jamie Collins" <jamiecollins@xxxxxxxxxx> wrote in message
news:1174637334.715247.72020@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Mar 22, 3:06 pm, "Jürgen Germonpré" <ricos...@xxxxxxxxxxx> wrote:
created the Trevors table and now I want to
delete it but when doing so i get this error:
DDL cannot be completed on this table because it is referenced by
constraint
<name> on table <name>. (Error 3803)
What must I do prior to deleting the table ? I've already deleted the
indexes but this doesn't makes a difference...
Table-level CHECK constraints must be dropped first e.g.
ALTER TABLE MasterSlaveTrevors DROP
CONSTRAINT master_cannot_be_slave
;
FWIW the SQL-92 standard has such syntax
DROP TABLE MasterSlaveTrevors CASCADE
;
which would remove the dependencies but although Access/Jet supports**
the syntax it doesn't perform the functionality (**that is, it doesn't
error; you can replace the keyword 'CASCADE' with any other word and
it won't error either <g>!)
Jamie.
--
.
- Follow-Ups:
- Re: Relationship Question
- From: Jamie Collins
- Re: Relationship Question
- References:
- Relationship Question
- From: Jürgen Germonpré
- Re: Relationship Question
- From: Jamie Collins
- Re: Relationship Question
- From: Jürgen Germonpré
- Re: Relationship Question
- From: Jamie Collins
- Relationship Question
- Prev by Date: Re: Relationship problem
- Next by Date: Re: DDL cannot be completed on this table because it is referenced by constraint <name> on table <name>. (Error 3803)
- Previous by thread: Re: Relationship Question
- Next by thread: Re: Relationship Question
- Index(es):
Relevant Pages
|