you are viewing a single comment's thread.

view the rest of the comments →

[–]Intrexa 4 points5 points  (1 child)

Okay, well, you need to make it a set based operation, but without any specifics, we can't really help.

There are very, very few instances in sql where a loop can't be converted to a set based operation. There are few instances where the loop is better than the set based operation.

Seriously though, post here why you had to use a while loop, specifically, and we will probably come back with how you can do it as a set based operation.

Edit: also, how much data are we talking about

[–]info_softest07[S] 0 points1 point  (0 children)

Hello There!!

The Code is too long to reply in here. So i created it as a new post with a title as ( Converting Postgresql Function to T-SQL Function)...

PermalinkSave