Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored procedure to generate compund PKs
Message
From
19/09/2002 19:01:50
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Stored procedure to generate compund PKs
Miscellaneous
Thread ID:
00702543
Message ID:
00702543
Views:
40
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
Next
Reply
Map
View

Click here to load this message in the networking platform