A question about prepared SQL statements 
Author Message
 A question about prepared SQL statements

I am having this problem:

Using Borland's BDE function

DbiQSetParams ( hSt[i],  np,  pfd ,  ( pBYTE )  ptr1 )

I never get my function

DbiQExec ( hSt[i], &ar[aa].a_fd )

To send the actual contents of variable "ptr1" during the time this second
function is executed. Address "ptr1" never changes during the program. What
DOES CHANGE is the contents of that address. "pfd" is not changing (for
now), but it might change. Is this possible?

The question is (since this is not totally clear in the Borland
Documentation):

is the DbiQSetParams() supposed to be executed every single time a new
query is performed or is it enough with simply executing it once and then
executing the DbiQExec() function for the actual query?

(pfd is a pointer to an array of FLDDesc structures, as it should be).

I will greatly appreciate any light on this subject...

Franz J Fortuny



Sun, 10 Oct 1999 03:00:00 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. performance question : prepared statement or statement?

2. Question about PREPARE statement in Embedded SQL

3. Question to PREPARE Statement in Embedded SQL

4. Prepared statements question

5. Non-placeholder Question Mark in Prepared Statement data

6. prepared statement question

7. prepared statement question...

8. Prepared statement question

9. Question about "prepare statements"

10. Question about Prepared statements.

11. --- Associated statement is not prepared - SQL Agent

12. Closed Cursor after preparing incorrect SQL Statement


 
Powered by phpBB® Forum Software