use Win32::OLE; $conn = new Win32::OLE('Adodb.Connection'); $conn->Open(<Execute("DROP Proc Test"); $conn->Execute("DROP Proc get_customer"); $conn->Execute(<Execute(<Errors->{Count} ) { foreach $error (Win32::OLE::in($conn->Errors)) { print $error->{Description}; } } } #CREATE PROCEDURE Test AS #RETURN 64 #GO