Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 28th, 2006, 09:35 PM
Steve
Guest
 
Posts: n/a
Default ADODB connection, SQL Literal String, Neon driver, DB2

The code:
SQLUPDATE="UPDATE BRDICT.TAUDIT "
SQLUPDATE=SQLUPDATE & "SET "
SQLUPDATE=SQLUPDATE & "LOG_INIT_UPD = " & "'" & qsLOG_INIT_UPD & "', "
SQLUPDATE=SQLUPDATE & "LOG_UID = " & "'" & qsLOG_UID & "', "
SQLUPDATE=SQLUPDATE & "PURPOSE = " & "'" & qsPURPOSE & "', "
SQLUPDATE=SQLUPDATE & "CHG_DTL = " & "'" & qsCHG_DTL & "', "
SQLUPDATE=SQLUPDATE & "SW_SYSTEM = " & "'" & qsSW_SYSTEM & "' "
SQLUPDATE=SQLUPDATE & " Where REC_NUM = " & qsRECNUM
conn.Execute(SQLUPDATE)
generates:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[NEON][SCOD32.DLL][DB2]DSNT408I SQLCODE = -102, ERROR: LITERAL STRING IS TOO LONG. STRING BEGINS xxxxxxx

/dss/ProdChangeLog/update_Taudit.asp, line 50


the string beginning displayed is actually the first characters in qsPURPOSE of line 5 above.

The line reference for the problem is line 9

The form fields that source qsPURPOSE and qsCHG_DTL are both 1kb varchars in DB2 table. The form fiield textareas are limited at 1000 chars.

I am stumped. I know this is a total newbie problem and I hang my head in shame.

Can anyone make heads or tails of this?

From http://developmentnow.com/g/62_2004_...sp-general.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles