Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert & stored procedure
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00736545
Message ID:
00736557
Views:
8
You can modify your stored procedure so you can request not only single key but multiple keys (range of keys). In the trigger you can than request range of keys and use it to populate multiple records.

>Hi Sergey
>
>Thanks for replying Sergey.
>
>I've tried using a trigger (I need to call my sp called pkGen which calculated the next pk for the table). But the trigger seems only to be called once during the insert rather than for every row (the insert is doing a bulk insert via a select).
>
>
>Regards
>
>Kal
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform