Welcome to Clarion Community Sign in | Join | Faq

Databases and Drivers

Started by elriba at 01-14-2008 6:35 AM. Topic has 1 replies.

Print Search
Sort Posts:    
   01-14-2008, 6:35 AM
elriba is not online. Last active: 8/22/2008 5:57:09 PM elriba

Top 100 Posts
Joined on 05-19-2006
Panama
Posts 6
Cannot convert SQLDATETIME to a date (07006)
Reply Quote
Hi,
 
I'm trying to update a table on a ASA9 database using a process procedure (I'm using the ODBC driver).
 
The table has the following primary key:
LLAVE                    KEY(vTranP:BusinessDate,vTranP:storeNum,vTranP:idCaja,vTranP:txnNum,vTranP:itemNum),NOCASE,OPT,PRIMARY
 
Where vTranP:BusinessDate is a DATE field.
 
The SQL trace shows the following statement:
 
0314H(1) 08:27:37.476 Preparing Statement 024A68A0H : UPDATE VTRANSPAGO SET DOCTOCXC = ?, POSTED = ? WHERE BUSINESSDATE = ? AND STORENUM = ? AND IDCAJA = ? AND TXNNUM = ? AND ITEMNUM = ?  Time Taken:0.00 secs
0314H(1) 08:27:37.476 Binding ? 1 for input with C type CHAR(NTS) as VARCHAR(15) for Statement 024A68A0H Time Taken:0.00 secs
0314H(1) 08:27:37.476 Binding ? 2 for input with C type UTINYINT as TINYINT for Statement 024A68A0H Time Taken:0.00 secs
0314H(1) 08:27:37.476 Binding ? 3 for input with C type DATE as DATE for Statement 024A68A0H Time Taken:0.00 secs
0314H(1) 08:27:37.476 Binding ? 4 for input with C type SSHORT as SMALLINT for Statement 024A68A0H Time Taken:0.00 secs
0314H(1) 08:27:37.476 Binding ? 5 for input with C type SLONG as INTEGER for Statement 024A68A0H Time Taken:0.00 secs
0314H(1) 08:27:37.476 Binding ? 6 for input with C type SLONG as INTEGER for Statement 024A68A0H Time Taken:0.00 secs
0314H(1) 08:27:37.476 Binding ? 7 for input with C type SLONG as INTEGER for Statement 024A68A0H Time Taken:0.00 secs
0314H(1) 08:27:37.476 Executing prepared Statement 024A68A0H
0314H(1) 08:27:37.476 Error Occurred: 07006 [Sybase][ODBC Driver][Adaptive Server Anywhere]Cannot convert SQLDATETIME to a date
0314H(1) 08:27:37.476  Time Taken:0.00 secs
I'd appreciate any suggestions!!
 
Best regards,
Edgard

   Report 
   05-20-2008, 2:36 PM
samir is not online. Last active: 9/28/2008 4:26:28 PM samir

Top 25 Posts
Joined on 05-21-2008
Posts 28
Re: Cannot convert SQLDATETIME to a date (07006)
Reply Quote
Hello,
Can you display your clarion code which update the table in this formum. I shall help you by re-writing your code with success.

Regards
Samir
   Report 
Clarion Communi... » Clarion » Databases and D... » Re: Cannot convert SQLDATETIME to a date (07006)

Powered by Community Server, by Telligent Systems