Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with adding a relationship SQL Server

Status
Not open for further replies.

Raenius

Programmer
Oct 14, 2003
77
0
0
NL
HI,

When I try to create a relationship between to tables in my database it gives the following error:

'ROUTERS' table saved successfully
'PINGS' table
- Unable to create relationship 'FK_PINGS_ROUTERS'.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]ALTER TABLE statement conflicted with COLUMN FOREIGN KEY constraint 'FK_PINGS_ROUTERS'. The conflict occurred in database 'netsentry', table 'ROUTERS', column 'routerID'.


Strange thing is I have been able to create this relation in the past but now it does not do it anymore.

It's a basic relation with a primary key -> foreign key situation.

Can anyone please help?

- Raenius

"Free will...is an illusion"
 
Check in your child table with parent table for that specific column to see any value that exists in child table but not in parent table.This is mostly where the conflict from
 
All tables are empty, I've made sure of that.

Any other things?

"Free will...is an illusion"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top