Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging a WHILE EXISTS
Message
 
To
02/11/2008 15:35:24
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01358902
Message ID:
01359033
Views:
29
>>Isn't it the same as:
>>
>>UPDATE Relation SET NoField  = CASE WHEN Field = Field.Field
>>                                         THEN Field.Numero
>>                                    ELSE NoField END,
>>                    NoField2 = CASE WHEN Field = Field.Field2
>>                                        THEN Field.Numero
>>                                   ELSE NoField2 END
>>FROM Relation
>>INNER JOIN Field ON (Ralation.Field = Field.Field OR Relation.Field2 = Field.Field2)
>>
>
>Yes, it is, but I want to have it in a loop.

Maybe I'm missing something here, but the loop will slow down the whole operation.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform