Update fails on CF 7.0, works on CF 5.0

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Update fails on CF 7.0, works on CF 5.0

    I'm not sure what's going on. The UPDATE below works with CF5.0 with MS Access
    ODBC, but fails with CF 7.0 with MS Access with Unicode. I first tried to make
    the datasource on the 7.0 box just MS Access ODBC, straight out of the box, but
    received the following error.
    ----------------------
    Connection verification failed for data source: slm
    java.sql.SQLException: Unable to retrieve error message from backend ODBC
    Driver.
    The root cause was that: java.sql.SQLException: Unable to retrieve error
    message from backend ODBC Driver.
    ----------------------

    reference is defined as long integer, action and issue are memo fields and the
    rest are text.

    Any ideas?


    C:\Inetpub\wwwroot\cfdocs\CASLM\sendMail.cfm: line 67
    65 : UPDATE incident SET status = '#status#',
    severity = '#severity#', type = '#type#', todayDate = '#todayDate#',
    66 : recipients = '#recipients#', action = '#currentAction#',
    issue = '#currentIssue#'
    67 : WHERE reference = #reference#

    The resolved UPDATE statement:
    UPDATE incident SET status = 'Degraded', severity = 'High Impact', type =
    'Closed',
    todayDate = '20060414165932', recipients = '2,5', action = 'Recharged the AC',
    issue = 'Overheated server rack'
    WHERE reference = 323232

    jdeline Guest

  2. Similar Questions and Discussions

    1. php upload: gifs works, jpg fails
      Using this this code to upload pictures to my site gif images work fine but with jpeg images the $userfile doesn't get a value so the script fails....
    2. IsPlaying() works on one SWF and fails on another?
      On a webpage with a Flash clip I use javascript which checked the value of window.document.movie.IsPlaying() to see if the clip is still palying and...
    3. LogonUser() Works Under NT4.0, Fails Under Win2K
      Any help would be greatly appreciated. Based on MS KB article Q248187 (HOWTO: Impersonate a User from Active Server Pages), I developed an...
    4. update statement with DSN works, DSN-less fails
      the following SQL statement works when executing via a DSN connection but fails when using the DSN-less method. sql statement: UPDATE...
    5. VPN works on dial-up but fails through LAN
      Running Windows XP Pro on my laptop, when I activate VPN to access my coporate server, it works flawlessly if I dial-up directly from the laptop...
  3. #2

    Default Re: Update fails on CF 7.0, works on CF 5.0

    Problem resolved, sort of. Using the MS Access ODBC, rather than Unicode, works. Now my question is "Why?"
    jdeline Guest

  4. #3

    Default Re: Update fails on CF 7.0, works on CF 5.0

    Is the MS Access db actually created as a Unicode database?

    By default, the server will use the default encoding suggested by the OS, which generally is not unicode in the case of Windows.
    SafariTECH Guest

  5. #4

    Default Re: Update fails on CF 7.0, works on CF 5.0

    reserved words...type is a reserved word. Change the field name or
    surround the reserved word in brackets [type]. The unicode driver is
    much pickier.
    HTH
    --
    Tim Carley
    [url]www.recfusion.com[/url]
    [email]info@NOSPAMINGrecfusion.com[/email]
    Mountain Lover Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139