RE: Error compiling DBD::Informix on Win NT

2001-07-23 Thread Mahdi A. Sbeih
Hi Jonathan, I am sorry for the attachment, I didn't recognize this huge size, sorry again. about the versions, NT 4.0 ActvieState Perl 5.6.1 ClientSDK 2.30, ESQL/C 9.21.TC1 MSVC 6.0 Do I need newer version of ClientSDK? Regards, Mahdi. -Original Message- From: Jonathan Leffler [mai

RE: :oracle 1.07 bug with oracle 7

2001-07-23 Thread Stevenson, Jonathan
There is a problem with DBD::Oracle 1.07 coneecting to Oracle 7. I sorted this issue with reference to an old post, but then just got another one, about missing symbols on the make perl step of a static build, so you might get the same thing, which is /usr/ccs/bin/ld: Unsatisfied symbols: dbd

Re: FW: Complier problem??

2001-07-23 Thread Jonathan Leffler
"Robert S Robinson (Manchester)" wrote: > Trying to install dbi: > > makefile runs ok. > > When I try to run > > make > > I get the follwing error messages: > > (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C > pr. > (Bundled) cc: warning 480: The -O option is availab

Re: Error compiling DBD::Informix on Win NT

2001-07-23 Thread Jonathan Leffler
"Mahdi A. Sbeih" wrote: > Hi All, > > while trying to build DBD::Informix on NT, > > nmake Makefile.PL ...OK > namke ...OK > namke test : most of the test failed for the same error. > > nmake install ... OK > > attached is a snap shot for the error that was repeated for most > of the 40 some tes

Win32::W32ODBC

2001-07-23 Thread Peters, Andrew
Tim If you are interested, I have updated the W32ODBC module to include a few more of the Win32::ODBC methods. The module provided the basis for a great solution to a memory leak problem with Win32::ODBC. We were able to transparently upgrade to DBI without changing any of the code. I have att

dbd::oracle 1.07 bug with oracle 7

2001-07-23 Thread Gerrit P. Haase
Hi Jonathan, i found your bug report where is exactely described what went wrong. http:[EMAIL PROTECTED]/msg04576.html We have the same problem here ("desc_h" undefined). I also read a posting from Mr. Bunce where he promised to come up with a fix (that was at Wed, 6 Jun 2001). http:[EMAIL PROT

Re: dbms_output

2001-07-23 Thread Michael A. Chase
It's even in the fine manual ('perldoc DBD::Oracle'): =head2 dbms_output_enable / dbms_output_put / dbms_output_get These functions use the PL/SQL DBMS_OUTPUT package to store and retrieve text using the DBMS_OUTPUT buffer. Text stored in this buffer by dbms_output_put or any PL/SQL block can b

RE: dbms_output

2001-07-23 Thread Fox, Michael
More specifically, you enable DBMS output with a private database handle function like (just setting another attribute on the database handle): $dbh->func( 100, 'dbms_output_enable' ); and after the procedure is executed use something like my @text = $dbh->func( 'dbms_output_get' ); to

RE: dbms_output

2001-07-23 Thread Steven Baldwin
Tim, If you have a look at the doco on dbms_output, you will see it really does nothing special apart from buffering the output in an internal buffer. That is why it is limited in the amount of output you can produce using it. SQL*Plus, and other tools that are dbms_output 'aware' simply make a

Re: DBD::DB2

2001-07-23 Thread db2perl
Hi Hervé. Your first problem is that your using a very old version of DBD::DB2. If you used the latest version (0.75), the complete message would have been: "Total Environment allocation failure! Did you set up your DB2 client environment?" And that is very likely your problem. Make sur

DBI Dying

2001-07-23 Thread Lambert,Justin
I am using ODBC on winnt4 with sql server 7 and am having problems with DBI. It will work fine for a while and then all of a sudden any script that has "use DBI;" on it will no longer work, the page sits loading forever. I have tried restarting the web server and didn't fix the problem but restar

RE: Looping through sth more than once

2001-07-23 Thread gordon . dewis
If the actions in the second while do not rely on the all the records having being processed in the first while then you should just combine the two. If you can't combine the two, you could push all the results into an array and then walk through the array. -Original Message- From: Eric,

RE: dbms_output

2001-07-23 Thread LBaxter
I assume you want to read debug messages from triggers invoked as a result of DBI, inserts, updates or deletes. You can do this by having your triggers (and package functions) write to a message table, which you then read back out using DBI. Lincoln -Original Message- From: [EMAIL PRO

RE: Looping through sth more than once

2001-07-23 Thread Sterin, Ilya
The code you have here will of course not work As Paul mentioned selectall_arrayref might be your best bet, but if the data set is quite large, you might just want to reexecute the statement and fetch again. Ilya -Original Message- From: Paul DuBois To: Eric, Audet; [EMAIL PROTECTED] S

Re: Looping through sth more than once

2001-07-23 Thread Paul DuBois
At 2:11 PM -0400 7/23/01, Eric, Audet wrote: >I want to be able to loop more than once through a result of rows as I >am new .. I tried a few things ... but did not work .. here's one thing I >tried. > > >$sth2 = $dbh->prepare($query); >$sth2->execute(); >$sth3=$sth2; >$rv=$sth2->rows; >while

Looping through sth more than once

2001-07-23 Thread Eric, Audet
I want to be able to loop more than once through a result of rows as I am new .. I tried a few things ... but did not work .. here's one thing I tried. $sth2 = $dbh->prepare($query); $sth2->execute(); $sth3=$sth2; $rv=$sth2->rows; while (@row=$sth2->fetchrow_array){ #do something } while (

Oracle 8.1.7, Solaris 8 Intel, DBD::Oracle 1.07

2001-07-23 Thread Andre T. Allen
I am new to the group, but I am actually subscribing to post a solution, rather than ask a question (go figure) As it seems that if you ask what is considered to be a stupid question, you either get flamed pretty bad, or a message saying RTFM. My problem related to the core dumps during the "make

dbms_output

2001-07-23 Thread timothy . helck
Dear list members, Is it possible to use the dbms_output functions with Perl DBI? I guess not, since dbms_output is part of SQLPLUS. Is there any other way to get output directly from a SQL statement in Perl DBI? (Other than cut & paste to SQLPLUS.) Regards, Tim

RE: :DB2

2001-07-23 Thread gordon . dewis
I've seen this when the environment variables are not defined. If you're trying to run this as a CGI, you'll have to explicitly export the appropriate DB2 environment variables. I'd be more specific, but I don't have access to the DB2 environment I've experienced this in at the moment. -Ori

RE: :DB2

2001-07-23 Thread Sterin, Ilya
DBI->connect(MyDatabase)? Please see perldoc DBI and perldoc DBD::DB2 for connection methods and arguments. Ilya -Original Message- From: Hervé BOULNOIS To: [EMAIL PROTECTED] Sent: 07/23/2001 10:10 AM Subject: DBD::DB2 Hi I try to connect to a remote DB2 database. I installed the

DBD::DB2

2001-07-23 Thread Hervé BOULNOIS
Hi I try to connect to a remote DB2 database. I installed the DB2 Connect Personnal Edition V7, DB2 Application Development Client V7, DB2 Administration Client V7, DBD::DB2 compilation was fine, test was OK (I'm under RH 7.0 with perl 5.6.0). I tested a connection with this little programm whi

RE: Syntax prob W/ SQL in dbi script

2001-07-23 Thread Sterin, Ilya
First thing you want to do is open a simple SQL book or reference. 2 out of 4 of your queries are wrong. SHOW test is a mysql program command only and is not a sql statement, therefore will not work with DBI. $command_1 ="CREATE TABLE test (name VARCHAR(20), address1 VARCHAR(40), address2 VAR

Re: Syntax prob W/ SQL in dbi script

2001-07-23 Thread ast . v-d
Hi Joseph, > $command_1 ="CREATE TABLE test (name VARCHAR(20), address1 VARCHAR(40), > address2 VARCHAR(40), city VARCHAR(25), state VARCHAR(16), postalcode > VARCHAR(12), country VARCHAR(30)"; I don't know mysql, but don't you need an closing parenthis ")" ? (If that is a parenthis) > $comman

Syntax prob W/ SQL in dbi script

2001-07-23 Thread Joseph Maxwell
Hello, I have a database set up on my web site at my ISP server. Connection to the DB can only be made from the localhost. So I am doing everything through CGI, Perl. They have the perl DBI and php3 that I can use to access the database. They provided a script to access the DBI which I modified

Error compiling DBD::Informix on Win NT

2001-07-23 Thread Mahdi A. Sbeih
Hi All, while trying to build DBD::Informix on NT, nmake Makefile.PL ...OK namke ...OK namke test : most of the test failed for the same error. nmake install ... OK attached is a snap shot for the error that was repeated for most of the 40 some tests. Please let me know if you need more inf

Re: Oraperl -> DBI

2001-07-23 Thread Michael A. Chase
I forgot to mention. Oraperl.pm is fine to let old code keep running, but new scripts should absolutely, positively use DBI and DBD::Oracle for database access. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Give a hobbit a fish and he eats fish for a day. Giv

Re: Oraperl -> DBI

2001-07-23 Thread Michael A. Chase
The script already has a 'use Oraperl;' line which is all that should be needed to use the Oraperl emulation that comes as part of DBD::Oracle. The Oraperl emulation is provided specifically to allow old scripts that use oraperl calls to continue to work with minimal changes. A much much bigger

Re: Comparing Tables (MySQL) against arrays

2001-07-23 Thread oakbox
Thank you all for the great advice. Drawing the fields of the table out into a hash and then doing the matching operation in Perl saved me a lot of time. I went from 300 second queries to 7 seconds. Here is a more complete description of the problem and my solution: I have a CSV file with name

DBI test, stack overflow

2001-07-23 Thread Jaakko Yli-Luukko
Hi I got this error (below) when runnig 'make test' I tried also 1.15 and 1.18 versions, all had same problem. DBI-1.14 run test ok. I'm currently using 1.14 from Mandrake RPM (perl-DBI-1.14-4mdk). And it causes the same libsafe violation in some cases, not allways. I'm using Mandrake Linux 7.2