Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need translation of basic foxpro commands into T/SQL
Message
De
03/09/2009 13:08:29
Walter Meester
HoogkarspelPays-Bas
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01422348
Message ID:
01422468
Vues:
52
>>Have you tried something like
>>
>>
UPDATE SET Fields = ?mValue WHERE Field2 = ?SomeLowSelectiveValue AND Field3 = ?SomeHighSelectiveValue
>>
>>And then sometime after it
>>
>>
UPDATE SET Fields = ?mValue WHERE Field2 =  ?SomeHighSelectiveValue AND Field3 = ?SomeLowSelectiveValue
>>
>>You migh get a nasty surprise by the second statement to seem hanging. If we only could give a hint that the second needs to recompile its execution plan, I would always use parameters, but unfortunately, sometimes hardcoding makes some sense.
>>
>Hi Walter,
>
>SQL 2005 and later has RECOMPILE query hint similar to stored procedures WITH RECOMPILE option..

Thanks sergey... I almost forgot that one... Unfrtunately I support a lot of SQL2000 installations
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform