Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow SQL in .NET on Fox Tables
Message
From
23/05/2004 16:29:41
 
 
To
23/05/2004 16:15:58
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00906289
Message ID:
00906331
Views:
11
Tim-

PMFJI, but it wouldn't appear your Select statement is optimized since you don't have any index expressions that match your WERE clauses (unless there are more than the one you quote here). I'd suggest you get the query optimized from with VFP and then extrapolate to your VB.NET project.

>Here is my SQL select statement and reader code:
>
>_____________________________________________________________________________
> Dim sb As New StringBuilder
>sb.Append("SELECT job_num, product, slot FROM prodwip WHERE job_num = " + " '" + txtJobNum.Text + "'")
> sb.Append(" AND (product = '877'")
> sb.Append(" OR product = '863'")
> sb.Append(" OR product = 'NP2')")
>
< snip>

>This is the Index Expression from Foxpro:
>
>TRIM(DTOS(canceled))+job_num
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform