Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote view works, sqlexec() doesn't
Message
From
05/03/1998 07:12:56
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
 
 
To
04/03/1998 11:01:29
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00081774
Message ID:
00082650
Views:
31
>>>If I create a remote view visually, it will allways run fine. When trying to use SQL pass-through in a program, it runs whenever it feels like. After running the program a few times for testing different queries, it stops retrieving data. It has to be one of those beginner caveats.
>>>
>>>Thanks for any help.
>>
>>What do you mean by "...stops retrieving data"?
>>
>>What is the value returned by SQLEXEC(). If you're getting an error (SQLEXEC() returns -1) what is the error?
>>
>>Is there data for the non-working query to return?
>>
>>-Mike
>
>Mike,
>
>I already straightened this up, and the problem solving approach that had to be used is the one you are suggesting. I started checking the return from sqlexec() and found out that there was a problem with my sql sentence. Like I suspected, it was a begginer's trap. Thanks anyway.
>
>Juan

Try sending SQLSETPROP(nConnHandle,"DispWarnings",.T.) prior to your SPT SQLEXEC line. This will enable the error messaging.
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Previous
Reply
Map
View

Click here to load this message in the networking platform