Re: multiple prepare calls

2004-08-25 Thread Joel West
On Wed, 25 Aug 2004, Registry wrote: N. B. my $sth2 = $DBH2 ->prepare( SELECT ...); my $rv2 = $sth2->execute(); not $DBH Thank you in advance.

Sighs

2004-08-23 Thread Joel West
Okay I am running DBI and if the query doesnt work I want to write the data from the to one file and the error to another: E.g. my $sth; $sth = $dbh->prepare (qq(insert into $table (RecordNum, Src_File, Src_Line, MSW_ID, Status, Status_Desc, Last_M

RE: Error logs for DBI

2004-08-23 Thread Joel West
re output from STDOUT to a file: ./file.pl | tee -a err.log - Ron Reidy Senior DBA Array BioPharma, Inc. -Original Message- From: Joel West [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 10:07 AM To: Reidy, Ron Cc: [EMAIL PROTECTED] Subject: RE: Error logs fo

RE: Error logs for DBI

2004-08-23 Thread Joel West
- From: Joel West [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 9:38 AM To: [EMAIL PROTECTED] Subject: Error logs for DBI How do I create log files with just errors? This electronic message transmission is a PRIVATE communication which contains information which may be confidential or

Error logs for DBI

2004-08-23 Thread Joel West
How do I create log files with just errors?

Re: Almost solved : MySQL to MS SQL Server

2004-08-20 Thread Joel West
I found it..duh! On Fri, 20 Aug 2004, Joel West wrote: I am much closer than before: I compiled FreeTDS from source. tsql connects no problems DBD::Sybase compiles no problem and no longer causes errors. BUT #!/usr/local/perl # use DBI; use DBD::Sybase; my $server="192.168.100.2"

Almost solved : MySQL to MS SQL Server

2004-08-20 Thread Joel West
I am much closer than before: I compiled FreeTDS from source. tsql connects no problems DBD::Sybase compiles no problem and no longer causes errors. BUT #!/usr/local/perl # use DBI; use DBD::Sybase; my $server="192.168.100.2"; my $uid="ss_userid"; my $dbh = DBI->connect("dbi:Sybase:$server", '$uid'

RE: MySQL to MS SQL Server

2004-08-19 Thread Joel West
om the unixODBC package #[MySQL] #Description= ODBC for MySQL #Driver = /usr/lib/libmyodbc.so #Setup = /usr/lib/libodbcmyS.so #FileUsage = 1 I am still horribly lost. On Wed, 18 Aug 2004, amonotod wrote: From: Joel West <[EMAIL PROTECTED]> Date: 2004/08/18 Wed PM 05

Re: MySQL to MS SQL Server

2004-08-19 Thread Joel West
= /usr/lib/libodbcmyS.so #FileUsage = 1 I am still horribly lost. On Wed, 18 Aug 2004, amonotod wrote: From: Joel West <[EMAIL PROTECTED]> Date: 2004/08/18 Wed PM 05:33:54 GMT my $dsn = "DBI:ODBC:databasename:ipaddress"; (Assuming you're on Windows...) my $d

Re: MySQL to MS SQL Server

2004-08-18 Thread Joel West
Actually I'm on Linux. - Original Message - From: "amonotod" <[EMAIL PROTECTED]> To: "Joel West" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, August 18, 2004 5:42 PM Subject: Re: MySQL to MS SQL Server > > From: Joel West &

MySQL to MS SQL Server

2004-08-18 Thread Joel West
Greetings, I've read what I can so far about the topic and have resisted posting but I am at a dead end. I need to move data from a mysql server to an MS SQL server on another machine. Retrieving the data from the mysql server is easy. I had that done in a few minutes using DBI. Now I am attem