CodeIgniter Forums
Are errros even supported in MS SQL? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Are errros even supported in MS SQL? (/showthread.php?tid=29945)



Are errros even supported in MS SQL? - El Forum - 04-27-2010

[eluser]0plus1[/eluser]
Yes, they are:

Code:
In file: mssql_driver, line 401 method: _error_message

Add the line:

Change:

Code:
return false;

to:

Code:
return mssql_get_last_message();

This will print the error messages from mssql.