Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ad hoc default value
Message
From
19/02/2002 19:59:02
 
 
General information
Forum:
Microsoft SQL Server
Category:
Database design
Miscellaneous
Thread ID:
00621581
Message ID:
00622290
Views:
20
Hello Michael.
What i intend to do is:
When the new row is added the procedure scans a certain numeric column for the next available number (it could be the MAX()+1 or a gap between say 5 and 7). When procedure finds the next available it inserts it into the column as the default value.
TIA.
Kamil.

>If you're using SQL Server 2000, a scalar function can be used in a CHECK constraint. If not, you're stuck using a trigger.
>
>-Mike
A moment of silence is our cosmic reset button.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform