Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server Insert Failing
Message
De
04/05/2007 17:45:49
 
 
À
04/05/2007 17:29:08
David Knoup
Unique Solutions Software Inc.
Pecatonica, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01222651
Message ID:
01222656
Vues:
20
You need to look at Aerror() to see any errors returned by SQL Server.

>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

(On an infant's shirt): Already smarter than Bush
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform