Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need translation of basic foxpro commands into T/SQL
Message
From
03/09/2009 13:08:29
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:
01422468
Views:
53
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform