Reading from Progress db

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

  1. #1

    Default Reading from Progress db

    I need to read from a progress db put i ma having problems reading fields with special chars like in Element1% and flux-ecd (% and -)
    how should i read them

    thanks


    jorgepino Guest

  2. Similar Questions and Discussions

    1. no progress bar on IE7
      hello; when I use javascript to: document.getElementById( "my_shockwave_container_div").innerHTML = my_object_embed_string the progress bar...
    2. ADM progress bar
      Hello! I have tried to create an ADM progress bar (kADMProgressBarType) in my plugin. However, it doesn't seem to be a way to update it. Anyone...
    3. progress
      I am getting a "little" frustrated with a guy here that keeps insisting Informix is crap, and Progress is the best database in the world. Anyone...
    4. Progress Bar help, please
      Greetings.. i'm a Flash newbie using Flash MX. I need to do a "progress bar" and I don't know where to start. I have a swf file ready to go on the...
    5. progress bar GO AWAY!
      I'm using the 2004pro component progress bar and i'm using it with the scrollpane inside my movie. it works just fine except for the fact that after...
  3. #2

    Default Reading from Progress db

    I need to read from a progress db put i ma having problems reading fields named with special chars like in Element1% and flux-ecd (% and -)
    how should i read them

    thanks

    jorgepino Guest

  4. #3

    Default Re: Reading from Progress db

    I don't know about Progress, but in most databases you can use square brackets
    [ ] to escape the column name in your CFQUERY. You could then use array
    syntax in your cfoutput. There may be other methods as well.



    <cfquery name="test" datasource="#DSN#">
    SELECT ID, [Element1%]
    FROM yourTableName
    </cfquery>

    <cfoutput query="test">
    #test["ID"][CurrentRow]# | #test["Element1%"][CurrentRow]#<br>
    </cfoutput>

    mxstu Guest

  5. #4

    Default Re: Reading from Progress db

    thanks I tryed the [] with no luck i keep getting this error
    [ODBC PROGRESS driver][PROGRESS]Syntax error (7587)

    any idea or direction on where i could find some answeres

    thanks
    jorgepino Guest

  6. #5

    Default Re: Reading from Progress db

    I wish I knew the correct character(s) for Progress db with ODBC... maybe back
    tic's? `Element1%`

    If not, you might want to try looking in the ODBC documentation or maybe
    posting the question to the [url]www.progress.com[/url] forums? If you do find the answer,
    definitely to post it here as well :-)

    mxstu Guest

  7. #6

    Default Re: Reading from Progress db

    thanks
    I got was able to get it to work
    it was simple but painful

    thanks all

    <cfquery name="test" datasource="SMDcustom" maxrows="100">
    SELECT Element1,"Element1%" as elem1prcnt //// i had to user "" and to
    assigned it to some thing else
    FROM PUB.PartMaster //// must use
    the PUB.
    </cfquery>


    jorgepino Guest

  8. #7

    Default Re: Reading from Progress db

    Got It...
    jorgepino 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