|
-
Jun 19th, 2001, 02:17 AM
#1
foreign key in SQL Server
is it possible to create a foreign key in SQL Server wherein the
fields being define as the reference is not a primary key?
-
Jun 19th, 2001, 06:37 AM
#2
Fanatic Member
Try creating a unique constraint on the referenced column. Even though I can't find where I've done this before, I'm pretty sure it will work.
Chris
-
Jun 19th, 2001, 07:31 AM
#3
We cannot create the unique constraint because the records in the fields are not unique either. we could have easily defnied them as primary key if they weren't.
Thanks for your help anyway.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|