Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stored procedure to generate compund PKs
Message
De
19/09/2002 19:01:50
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Titre:
Stored procedure to generate compund PKs
Divers
Thread ID:
00702543
Message ID:
00702543
Vues:
41
Would somebody share a SQL Server stored procedure that creates compound primary keys? I know how to do it in VFP but not T-SQL.

The first part of the key is a site number packed in two bytes and is kept in a one record table. The second part is a running number for each table, kept in a keys table, and packed into four bytes.

TIA,

Alex
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform