Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with an insert
Message
 
To
31/05/2006 09:07:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01126129
Message ID:
01126139
Views:
24
>i want to do an insert in a sql server tables, so i do my insert sentence in a variable.
>SQLCOMMAND = "INSERT INTO TEMP (ID,IS_ACTIVATED) VALUES(" + ALLTRIM(STR(L_MYID)) + "," + L_BACTIVATED + ")", BUT I GET AND ERROR. L_BACTIVATED is a true or false value. Do i have to convert it ????
TEXT TO SQLCOMMAND NOSHOW PRETEXT 15
     INSERT INTO TEMP (ID,IS_ACTIVATED) VALUES ('<<TRANSFORM(L_MYID)>>',<<IIF(L_BACTIVATED,1,0)>>)
ENDTEXT
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform