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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I define one-to-one relationships in SQLServer 7?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have not yet realised how to define if the relation should be a one-to-one relationship or one-to-many relationship etc.<br>I've just made the relations of the tables that we are using in our database but they are all by default now set as one-to-many relations. I wonder how I can make a few of them one-to-one relations as that is how the original database is set up.<br>(I am working with a project of converting an existing Access97 Database into SQL Server 7 format).<br>Thanks a lot for you help!<br>-Jonas J
 
Let's see if I can explain this without screwing up:<br><br>A one-to-one relationship (Table1-Table2) would be one where Table1's foreign key does not allow null values, and refers to Table2's primary key. <p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top