Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Unable to Update Table Even After Dropping Constraint
In Microsoft SQL Server, I have a documents table and a table which
categorizes the documents, which we'll call categories.

I tried running UPDATE statements on the categories table previously
and I ran into a foreign key constraint. The error given was "UPDATE
statement conflicted with COLUMN REFERENCE constraint FK..."

So I got rid of the Foreign Key relationship, and tried running an
UPDATE statement against the categories table again.

I'm now getting the following message:
'Cannot UPDATE "categories" because "documents" exists.'

There must be something hanging around maintaining that relationship,
but I'm not sure where it would be found.

I was thinking about dropping the table and then adding it back again,
but I'm not entirely sure what that would do.

Any help is appreciated in advance.

thanks,
Geoff


Report this thread to moderator Post Follow-up to this message
Old Post
geoffrobinson
01-17-06 01:24 AM


Re: Unable to Update Table Even After Dropping Constraint
are there any triggers involved?


Report this thread to moderator Post Follow-up to this message
Old Post
Alexander Kuznetsov
01-17-06 01:24 AM


Re: Unable to Update Table Even After Dropping Constraint
I looked for them, but I didn't see any. I will take another look.

thanks,
Geoff


Report this thread to moderator Post Follow-up to this message
Old Post
geoffrobinson
01-17-06 01:24 AM


Re: Unable to Update Table Even After Dropping Constraint
Alexander Kuznetsov  wrote:
> are there any triggers involved?

It was indeed triggers. I just didn't see them there or didn't think
about it. I'm not sure what mistake I made.

At any rate, thank you.

Geoff


Report this thread to moderator Post Follow-up to this message
Old Post
geoffrobinson
01-19-06 04:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 04:00 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006