in reply to Re^2: Perl OLE32 MSSQL SELECT dateadd function results in “Cursor type changed” error
in thread Perl OLE32 MSSQL SELECT dateadd function results in “Cursor type changed” error
#!/usr/bin/perl -- use strict; use warnings; use Data::Dump qw/ dd pp /; use DBI(); Main( @ARGV ); exit( 0 ); sub Main { my $att = {qw/RaiseError 1/}; my $user = my $pass = undef; my $dbh = DBI->connect("dbi:ADO:$dsn", $usr, $pwd, $att ) ; $dbh->trace(3); my $sth = $dbh->prepare( $mssql_select ); dd( $sth->execute ); dd( $sth->fetchall_arrayref ); }
See also Tutorials->Database Programming->DBI recipes
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl OLE32 MSSQL SELECT dateadd function results in “Cursor type changed” error
by newbieperlperson (Acolyte) on Dec 09, 2013 at 18:34 UTC |