Does anyone have any good tips for error handling? I've tried different
methods to retrieve good error information from mssql_query but nothing
seems to be working.

Here's the latest attempt:

$result=mssql_query('SELECT @@ERROR As ErrorCode');
if($error['ErrorCode'] != 0) {
 echo $error['ErrorCode'];
 echo $sql2;
 die('Inserting OPS failed');

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to