Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with UDF parameters
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01020343
Message ID:
01020541
Views:
22
>That actually is syntactically incorrect, but what I'm doing now is extracting into a lookup table as table variable first and then JOINing to that instead of the function.
>
>I'm using the 'primary key' qualifier within the table definition to avoid the table scan problem and the performance is not too bad.
>
>Thanks for your assistance which pushed me into thinking of alternatives.

Hi Simon,

Sometimes a temp table may be faster because you can create an index on it. You can also create an index on a table variable with primary key constraint.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform