General information
Title:
SQL Server Insert Failing
Sometimes when we use this insert command on MS SQL Server it returns that was successfull, but it doesn't always insert the record when we go back and look at the data.
lcinsert="INSERT INTO iciadj
(cuid,cadjno,cmodule,citemno,cwarehouse,cbin,centerby,cadjacc,cremark,dadjust,nadjqty) VALUES(?lcUID,?lccid,'IC',?lcitem,?lcwhs,?lcbin ,?lcemp ,'11111-111',?lccode,getdate(),?lcqty)"
x=SQLEXEC(gnhandle,lcinsert)
IF x<1
Now when it fails to do the insert, it still doesn't return a value less than one, but the data is not in the table.
Any help would be appreciated.
Thanks!
-David
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only