fbsql_db_status
Opis
int fbsql_db_status ( string database_name [, resource link_identifier] )Gets the current status of the specified database.
Parametry
database_name
The database name.
link_identifier
Identyfikator połączenia FrontBase zwrócony przez fbsql_connect() lub fbsql_pconnect().
Jeśli link jest opcjonalny i nie zostanie podany, funkcja spróbuje znaleźć otwarte połączenie do serwera FrontBase i jeśli takiego połączenia nie znajdzie, spróbuje utworzyć je tak jak fbsql_connect() byłaby wywołana bez argumentów
Zwracane wartości
Returns an integer value with the current status. This can be one of the following constants:
FALSE - The exec handler for the host was invalid. This error will occur when the
link_identifier
connects directly to a database by using a port number. FBExec can be available on the server but no connection has been made for it.FBSQL_UNKNOWN - The Status is unknown.
FBSQL_STOPPED - The database is not running. Use fbsql_start_db() to start the database.
FBSQL_STARTING - The database is starting.
FBSQL_RUNNING - The database is running and can be used to perform SQL operations.
FBSQL_STOPPING - The database is stopping.
FBSQL_NOEXEC - FBExec is not running on the server and it is not possible to get the status of the database.
Poprzedni | Spis treści | Następny |
fbsql_db_query | Początek rozdziału |