>>>You're inserting multiple records in one INSERT, right?
>>
>>Yes, in this case multiple records (charges). Original code of my colleague used select and then scan, scatter/insert from memvar. I wrote it as one insert-SQL statement.
>
>If GUID generating SP is slow, going back to record by record processing and generating GUIDs before insert could be faster.
The only difference in "my" routine vs. GUID() routine that the API declaration done outside...
Anyway, I'll make a switch.
If it's not broken, fix it until it is.
My Blog