Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mimic identity field
Message
From
07/08/2003 07:27:53
 
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00817510
Message ID:
00817615
Views:
16
Hi Roy,

on Trigger
( best is INSTEAD INSERT,
but it have a bug for SCOPE_IDENTITY(), it return NULL)
....
-- suppose my_Incr>0
INSERT ..... (....
, ISNULL((SELECT MAX(myIdentity) FROM thisTable)+my_Incr,my_Seed)
,....
For not slow down the insert, add a index unique for myIdentity.
Previous
Reply
Map
View

Click here to load this message in the networking platform