Ask a Question related to Ruby, Design and Development.
-
Oliver Osterholz #1
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 &nbs p; ")</P><P>sth.execute("kbpa &nbs p; ")</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 &nbs p; ") 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
-
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... -
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... -
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... -
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... -
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... -
Oliver Osterholz #2
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 &nbs p; ")</P><P>sth.execute("kbpa &nbs p; ")</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 &nbs p; ") 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
-
Oliver Osterholz #3
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



Reply With Quote

