sh0wtym3 Posted June 10, 2010 Share Posted June 10, 2010 I've written an SQL query but it's failing and I'm trying to figure out why SQL Server 2005 is kicking it back. Is there a way to retrieve and read these error messages after executing: $sql = "My query here"; mssql_query($sql); ? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/204433-php-mssql_query/ Share on other sites More sharing options...
lemmin Posted June 10, 2010 Share Posted June 10, 2010 Try mssql_get_last_message(). http://us.php.net/manual/en/function.mssql-get-last-message.php Link to comment https://forums.phpfreaks.com/topic/204433-php-mssql_query/#findComment-1070555 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.