Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about performance
Message
De
13/10/2004 11:41:57
 
 
À
13/10/2004 05:27:43
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00950954
Message ID:
00951087
Vues:
17
>Hi All,
>
>I work with Visual Foxpro. I have to use Dynamic Where Clause in my SQL Server queries.
>
>I found two options on the threads :
>1) SELECT * FROM Table WHERE (SELECT CASE ...) = (SELECT CASE ...)
>2) DECLARE @SqlStatement varchar(4000)
> SET @SqlStatement = 'Sql Statement'
> EXEC (@SqlStatement)
>
>I'd like to know which option offer better performance.
>Or is there other options ?
>
>Thanks for your help.

They are not equal, but 2 is the best, sure.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform