Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC() returns 0 - then what?
Message
From
12/05/1997 10:25:35
 
 
To
11/05/1997 01:39:34
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00031697
Message ID:
00031776
Views:
42
Hello! There is an answer to your question. Simply use two function: SqlPrepare() and SQLEXEC(). Be sure that your SPT is configured as asynchronous. All what you must do (simple example from help): ... there open your SQL connection and prepare your variables gcAuthor = 'Smith' = SQLPREPARE(gnConnHandle, 'SELECT * FROM authors; WHERE au_lname = ?gcAuthor','ResultSet') do while .t. lnSQLRetCode = SQLEXEC(gnConnHandle) if lnSQLRetCode <> 0 exit && SPT return something different than zero endif enndo ... processing cursor ResultSet or trap the error from SPT Yours ever, Vladimir Shevchenko > I don't know what to do when SQLEXEC() returns 0 indicating that the SQL > pass through command has not yet finished executing. >
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Previous
Reply
Map
View

Click here to load this message in the networking platform