I am tracking mysql errors using the function `mysql_error` that everyone knows. But, I am accessing records from SQL Server, For that i have used all the `mssql_` functions which are provided by PHP.

One of my queries is not getting executed and am not sure where i did the mistake. Can any one please tell me, what is the exact function for SQL Server to track the DB errors(available in PHP).

```
SELECT * FROM gb WHERE postalcode like 'YO1%' OR place like 'YO1%' group by postalcode, region3 order by postalcode asc

```