Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC error
Message
From
29/01/2003 10:37:39
Diptesh Patel
Unitelsoftware Ltd.
Mumbai, India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
SQLEXEC error
Miscellaneous
Thread ID:
00746694
Message ID:
00746694
Views:
57
I am using SQLexec() with SQLprepare() function it gives me following error.

SQL statemnt parameter is required for non-prepared SQLEXEC() calls.

sample code is as follows
cInsStr = "Insert into APPL values("+allt(str(m.MAppKey))+","+ ; thisform.cmbBranch.value+","+;
allt(ThisForm.Text1.value)+","+;
"'',"+;
"0,"+;
"0,"+;
"0,"+;
"0,"+;
"'1',"+;
"'N',"+;
m.DtStamp+")"
=sqlprepare(nHandle,cInsStr)
=sqlexec(nHandle)

&& where APPL is remote table name
&& mappkey is numeric
&& cmbBranch is 3 digit code
&& dtstamp is 01/29/2003 in character format.

&& handle is frmm sqlconnect()
Next
Reply
Map
View

Click here to load this message in the networking platform