Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need translation of basic foxpro commands into T/SQL
Message
 
 
To
03/09/2009 11:48:48
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01422348
Message ID:
01422457
Views:
70
>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..
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform