0% found this document useful (0 votes)
43 views1 page

ODBC Dump Error Debugging Guide

DumpError provides a 3 sentence summary of the last error condition, including the error number, error text, and ODBC connection number if applicable. It is used primarily for debugging by outputting error details to the screen after a database operation like a SQL statement fails. For example, it can be called after creating an ODBC connection or executing a SQL statement to help diagnose why an error occurred.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

ODBC Dump Error Debugging Guide

DumpError provides a 3 sentence summary of the last error condition, including the error number, error text, and ODBC connection number if applicable. It is used primarily for debugging by outputting error details to the screen after a database operation like a SQL statement fails. For example, it can be called after creating an ODBC connection or executing a SQL statement to help diagnose why an error occurred.

Uploaded by

Amutha Arun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

DumpError

Dump to the screen details about the last error condition. This includes error number, error text and the
ODBC connection number that caused the error (if there is one). This is used primarily for debugging.

Example:
$db = new Win32::ODBC("My DSN");
if (undef $db){
Win32::ODBC::DumpError();
}
if ($db->Sql("Select * FROM foo")){
$db->DumpError;
}

You might also like