Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inconsistent SPT-Select returns.
Message
From
10/08/2000 16:39:58
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00403527
Message ID:
00403657
Views:
15
>>When executing SPT-Select against databases ( both locally and remotely) we often receive inconsistent return cursor unless SELECT-SQL contains "ORDER BY" or "GROUP BY" clause.
>>Is there a fix for this problem ?
>
>My guess is incorrect SQL being used. What does the SQL look like and what is the database? Oracle? SQL Server? VFP?

The database is VFP.

1. SELECT expression that returns inconsistently:
lcStrSQL = " SELECT p.* FROM arperend p " + ;
" WHERE p.pedPerEnd = {" + DTOC(ldPeriodEnd) + "} "

2. SELECT expression that returns consistently:
lcStrSQL = " SELECT p.* FROM arperend p " + ;
" WHERE p.pedPerEnd = {" + DTOC(ldPeriodEnd) + "} " + ;
" ORDER by peiacct "

3. SQL query commands:
SqlPrepare(lnhandle, lcStrSQL, lccursor)
SqlExec(m.lnhandle)

p.pedPerEnd - field date-type
ldPeriodEnd - variable date-type
lnhandle - connection handle

Thanks
Ed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform