Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is INLIST() in SQL Server optimized?
Message
 
 
To
16/05/2008 06:38:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01316947
Message ID:
01317577
Views:
8
>
>1) Do not use inlist() bu in ().
>2) Unlike VFP you can send very long lists.
>3) As list size increases it gets slower (SQL server needs to consume a larger input)
>4) An alternative is to create a temp table on the same connection and insert values in that table then use a join (or in (select ... )). This approach works better if you are using the same query for both VFP and SQL.
>Cetin

Thank you, Cetin.

Although I don't understand how to do item 4) in your list. How do you create a temp table in SQL Server without a stored procedure?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform