×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

ODBC SAGE Gestion commerciale 100 : Error in assignement

ODBC SAGE Gestion commerciale 100 : Error in assignement

ODBC SAGE Gestion commerciale 100 : Error in assignement

(OP)
Hello,

I try to create a document in Sage with the following query :

INSERT INTO F_DOCENTETE (DO_Domaine , DO_Type , DO_Piece , DO_Date , DO_Ref , DO_Tiers , CO_No , DO_Period , DO_Devise , DO_Cours , DE_No , LI_No , DO_Expedit , CT_NumPayeur , DO_Coord01 , DO_Coord02 , DO_Coord03 , DO_Coord04 , DO_Souche , DO_DateLivr , DO_Condition , DO_BLFact , DO_Reliquat , DO_Imprim , DO_Langue , CA_Num , CG_Num , DO_Tarif , DO_Colisage , DO_DebutAbo , DO_FinAbo , DO_DebutPeriod , DO_FinPeriod , DO_TypeColis , DO_Ecart , DO_Regime , N_CatCompta , DO_Ventile , AB_No , DO_Statut , DO_Heure , CA_No , DO_Transfere , DO_Cloture , DO_NoWeb , DO_Attente , DO_NbFacture , DO_Transaction , DO_TxEscompte , CO_NoCaissier ) VALUES (0, 3, 'PIECE2', '{d 2011-03-20}', '', 'TEST7', '0', 1, 0, 0, 1, 1, 1, 'TEST7', '', '', '', '', 0, NULL, 1, 0, 0, 0, 0, '', 41100000, 1, 1, NULL, NULL, NULL, NULL, 1, 0, 21, 1, 0, 0, 2, '{t 20:37:02}', 0, 0, 0, '', 0, 1, 11, 0, 0)

The query doesn't work, I obtain the following error :

Warning: odbc_exec() [function.odbc-exec]: SQL error: [Simba][SimbaEngine ODBC Driver]Error in assignment., SQL state 22005 in SQLExecDirect in C:\wamp\www\edi\test.php on line 140

Can you help me please ?

RE: ODBC SAGE Gestion commerciale 100 : Error in assignement

You probably have a mismatch on a value.  Are you sure that you are expressing date and time correctly?

Tom Morrison
Micro Focus

RE: ODBC SAGE Gestion commerciale 100 : Error in assignement

(OP)
Hello,

I find the problem. The value of a field was set to 0 and not '0' (it's a string an not an integer).

Thank you

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close