I am trying to post data from a Foxpro file to a sql sever. This has been successful, however when i try adding some more data, it fails (most of the time crashes).
So i have shortened the command line by storing the variable i want to call in "m.Sg_Subject"
I then call this in my sql exec() as shown below:
SQLEXEC(m.temp1, "INSERT INTO MsgInfo (ID, creator, created, sequenceNo, EnvCount, Status, StatusTime, Body, BodyType, Subject);
VALUES ( MsgInfo_ID, Strategic.sg_creator, &temp_time, MsgInfo_ID, '0', '3', &temp_time, Body_ID, 'ASCII', m.Sg_subject )")
As you can see i have included m.sg_subject into the values and this works fine unders the column subject, however, if i add an additional column after Subject and inserts its value, foxpro crashes, I have been told this is because the command line maybe to long for FoxPro to execute, any ideas how i can over come this ...as in add more to my command line, so as to include more fields after subject