Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relations in VB
Message
De
23/08/2001 15:08:53
 
 
À
23/08/2001 14:56:06
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
SQL Server
Titre:
Divers
Thread ID:
00548219
Message ID:
00548229
Vues:
12
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform