Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relations in VB
Message
From
23/08/2001 15:08:53
 
 
To
23/08/2001 14:56:06
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual Basic
Category:
SQL Server
Title:
Miscellaneous
Thread ID:
00548219
Message ID:
00548229
Views:
9
>Hello,
>
> I was wondering if anyone knows how to create a 1 to many relation between tables using SQL Server? Is this something that would be done on the server or does it have to be done from VB with a select statement?
>
>Thanks
>
>Jim

A one to many relationship would be set with a foreign key constraint either with a SQL statement or with the Enterprise Manager.

Then on your VB code you would use a SQL join whenever you need related data from both tables.

HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform