Ask a Question related to Ruby, Design and Development.

  1. #1

    Default DBI:ODBC-Question

    <html><style>p {margin: 0px}</style><body style='font-size:9pt; font-family:Verdana; font-family: Verdana' ><P>Hi, </P><P>I'm trying to execute a prepared statement several times:</P><P>dbh=DBI.connect("dbi:ODBC:TESTDB", "test", "test")</P><P>sth=dbh.prepare("select * from z_da where entitaet_c = ?")</P><P>sth.execute("egpa&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ")</P><P>sth.execute("kbpa&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ")</P><P>On the second execute i get the Message:</P><FONT color=#0000ff size=2><P>DBI::DatabaseError: S1010 (0) [Oracle][ODBC]Function sequence error.</P><P>D:/Programme/ruby/lib/ruby/site_ruby/1.8/DBD/ODBC/ODBC.rb:204:in `execute'</P><P>D:/Programme/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:743:in `execute'</P></FONT><P>Does anybody know what's wrong here? I guess I miss something important.</P><P>Another problem is that since the db-field entitaet_c is!
    defined as char(20) I have to write</P><P>sth.execute("egpa&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ") to get results. I didn't expect that since this works fine:</P><P>dbh.execute("select * from z_da where entitaet_c='egpa'")</P><P>thank you for your help</P><P>Oliver</P></body></html>
    __________________________________________________ ____________________________<br>Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2<br>Kostenlos downloaden: <A HREF="http://screensaver.web.de/?mc=021110"><B>http://screensaver.web.de/?mc=021110</B></A>



    Oliver Osterholz Guest

  2. Similar Questions and Discussions

    1. odbc general question
      Hi everyone I am new to CF. I have been having a problem that I am not sure how to solve I hope that oe of you can help me take care of it. I am...
    2. ODBC Database on IIS question. Where do I start?
      Hello, I currently have several MFC apps using databases through ODBC. I would like to be able to put a database on IIS and have workstations in...
    3. DBI/ODBC question: how to create DB programmatically?
      Hi, I've been trying to figure out how to use ODBC with DBI. So far, I have created a DSN for an existing DB and managed to read tables, update...
    4. ODBC Question
      Hi, Can anyone tell me whether it is possible to know whether any transaction is running for an ODBC connection via ODBC/CLI calls? Thanks in...
    5. DB2 RuntimeClient V8 and DB2 z/OS V7 ODBC question SQL0440N
      Anyone who can help. I've changed my DB2 Runtime Client and DB2 Connect EE from V7 to V8. But after the changing I have some problem when...
  3. #2

    Default DBI:ODBC-Question

    <html><style>p {margin: 0px}</style><body style='font-size:9pt; font-family:Verdana; font-family: Verdana' ><P>Hi, </P><P>I'm trying to execute a prepared statement several times:</P><P>dbh=DBI.connect("dbi:ODBC:TESTDB", "test", "test")</P><P>sth=dbh.prepare("select * from z_da where entitaet_c = ?")</P><P>sth.execute("egpa&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ")</P><P>sth.execute("kbpa&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ")</P><P>On the second execute i get the Message:</P><FONT color=#0000ff size=2><P>DBI::DatabaseError: S1010 (0) [Oracle][ODBC]Function sequence error.</P><P>D:/Programme/ruby/lib/ruby/site_ruby/1.8/DBD/ODBC/ODBC.rb:204:in `execute'</P><P>D:/Programme/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:743:in `execute'</P></FONT><P>Does anybody know what's wrong here? I guess I miss something important.</P><P>Another problem is that since the db-field entitaet_c is!
    defined as char(20) I have to write</P><P>sth.execute("egpa&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ") to get results. I didn't expect that since this works fine:</P><P>dbh.execute("select * from z_da where entitaet_c='egpa'")</P><P>thank you for your help</P><P>Oliver</P></body></html>
    __________________________________________________ ____________________________<br>WEB.DE FreeMail wird 5 Jahre jung! Feiern Sie mit uns und<br>nutzen Sie die neuen Funktionen <A HREF="http://f.web.de/features/?mc=021130"><B>http://f.web.de/features/?mc=021130</B></A>



    Oliver Osterholz Guest

  4. #3

    Default DBI:ODBC-Question

    Hi, (here my third trial, sorry)

    I'm trying to execute a prepared statement several times:

    dbh=DBI.connect("dbi:ODBC:TESTDB", "test", "test")

    sth=dbh.prepare("select * from z_da where entitaet_c = ?")

    sth.execute("egpa ")

    sth.execute("kbpa ")

    On the second execute i get the Message:

    DBI::DatabaseError: S1010 (0) [Oracle][ODBC]Function sequence error.

    D:/Programme/ruby/lib/ruby/site_ruby/1.8/DBD/ODBC/ODBC.rb:204:in `execute'

    D:/Programme/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:743:in `execute'

    Does anybody know what's wrong here? I guess I miss something important.

    Another problem is that since the db-field entitaet_c is defined as char(20) I have to write

    sth.execute("egpa ") to get results. I didn't expect that since this works fine:

    dbh.execute("select * from z_da where entitaet_c='egpa'")

    thank you for your help

    Oliver

    __________________________________________________ ____________________________
    Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
    Kostenlos downloaden: [url]http://screensaver.web.de/?mc=021110[/url]


    Oliver Osterholz 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