Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mssql_min_message_severity(3) [php man page]

MSSQL_MIN_MESSAGE_SEVERITY(3)											     MSSQL_MIN_MESSAGE_SEVERITY(3)

mssql_min_message_severity - Sets the minimum message severity

SYNOPSIS
void mssql_min_message_severity (int $severity) DESCRIPTION
Sets the minimum message severity. PARAMETERS
o $severity - The new message severity. RETURN VALUES
No value is returned. EXAMPLES
Example #1 mssql_min_message_severity(3) example <?php // Connect to MSSQL mssql_connect('KALLESPCSQLEXPRESS', 'sa', 'phpfi'); // Set the minimum message severity to 17, this // will not show any messages issued by the underlaying // API when we select a non-existent database below mssql_min_message_severity(17); // Select a non-existent database mssql_select_db('THIS_DATABASE_DOES_NOT_EXISTS'); ?> The above example will output: mssql_select_db(): Unable to select database: THIS_DATABASE_DOES_NOT_EXISTS PHP Documentation Group MSSQL_MIN_MESSAGE_SEVERITY(3)

Check Out this Related Man Page

MSSQL_GET_LAST_MESSAGE(3)												 MSSQL_GET_LAST_MESSAGE(3)

mssql_get_last_message - Returns the last message from the server

SYNOPSIS
string mssql_get_last_message (void ) DESCRIPTION
Gets the last message from the MS-SQL server PARAMETERS
This function has no parameters. RETURN VALUES
Returns last error message from server, or an empty string if no error messages are returned from MSSQL. EXAMPLES
Example #1 mssql_get_last_message(3) example <?php // Connect to MSSQL and select the database mssql_connect('KALLESPCSQLEXPRESS', 'sa', 'phpfi'); mssql_select_db('php'); // Make a query that will fail $query = @mssql_query('SELECT * FROM [php].[dbo].[not-found]'); if (!$query) { // The query has failed, print a nice error message // using mssql_get_last_message() die('MSSQL error: ' . mssql_get_last_message()); } ?> The above example will output something similar to: MSSQL error: Invalid object name 'php.dbo.not-found'. SEE ALSO
mssql_min_error_severity(3), mssql_min_message_severity(3). PHP Documentation Group MSSQL_GET_LAST_MESSAGE(3)
Man Page