Matt Sergeant > Win32-ADO-0.03 > Win32::ADO

Download:
Win32-ADO-0.03.tar.gz

Dependencies

Annotate this POD

Related Modules

Class::DBI
Win32::OLE
DBD::ODBC
DBD::ADO
Win32::ODBC
Win32::Process
DBIx::SQLEngine
DBD::Sybase
more...
By perlmonks.org
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Win32::ADO - ADO Constants and a couple of helper functions

SYNOPSIS ^

        use Win32::ADO qw/CheckDBErrors/;

DESCRIPTION ^

Not much to say. Simply provides all the ADO constants for your use, like in VBScript (or JavaScript). This module is really deprecated in favour of Win32::OLE::Const, and the proper ADO constants. Use that with the following syntax:

        use Win32::OLE::Const;
        my $name = "Microsoft ActiveX Data Objects 2\\.0 Library";
        $ado_consts = Win32::OLE::Const->Load($name)
        || die "Unable to load Win32::OLE::Const ``$name'' ".Win32::OLE->LastError;

And then use $ado_consts as a hash ref with the keys being the constant names.

Also contains CheckDBErrors, for doing ADO error checking. Pass it the connection object and an empty array ref, as follows:

        CheckDBErrors($Conn, \@DBErrors) or die @DBErrors;

Have fun...

AUTHOR ^

Matt Sergeant, matt@sergeant.org

syntax highlighting: