in reply to FreeTDS (Linux) vs. SQLSRV32.dll (Windows) via ODBC
The code above shows multiple executes on a single prepare, although it's set up a bit differently than what you've got.my $sth = $dbh->prepare("INSERT INTO tblserverattributes(hostname,attr +name,attrvalue) VALUES (?,?,?)"); foreach $attr( keys %{$info{'DATA'}}) { $sth->execute($hostname,$attr,$info{'DATA'}->{$attr}); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: FreeTDS (Linux) vs. SQLSRV32.dll (Windows) via ODBC
by pvbcharon (Beadle) on May 26, 2010 at 15:03 UTC | |
by jdrago999 (Pilgrim) on May 26, 2010 at 19:10 UTC | |
by pvbcharon (Beadle) on May 27, 2010 at 07:18 UTC | |
by sierpinski (Chaplain) on May 26, 2010 at 17:08 UTC | |
by pvbcharon (Beadle) on May 27, 2010 at 07:19 UTC |