in reply to Re: Perl db programming
in thread Perl db programming
when I print @data it seems to be giving me the number of lines in the SQL text. instead of the text itself. Please advisemy $sth = $dbh->prepare("exec sp_helptext ?"); $sth->execute($_[0]) || die ("cannot run sp"); while(my @data = $sth->fetchrow_array()) { print join(q{,}, @data) . "\n".$data[1]; } $sth->finish; $sth=undef;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl db programming
by mje (Curate) on Feb 05, 2009 at 11:12 UTC |