Sybase generates the following warning whenever you change databases.
Sybase: Server message: Changed database context to 'databasename'.
Suppress the message by prefixing sybase_connect and sybase_select_db with an @ sign.
![]() | sybase_select_dbDescriptionbool sybase_select_db ( string database_name [, resource link_identifier] )sybase_select_db() sets the current active database on the server that's associated with the specified link identifier. If no link identifier is specified, the last opened link is assumed. If no link is open, the function will try to establish a link as if sybase_connect() was called, and use it. 如果成功则返回 TRUE,失败则返回 FALSE。 Every subsequent call to sybase_query() will be made on the active database. See also sybase_connect(), sybase_pconnect() and sybase_query() ![]()
jayne dot westall at bayernlb dot co dot
31-Oct-2005 04:33
Sybase generates the following warning whenever you change databases.
verdy_p at wanadoo dot fr
25-Jul-1999 05:14
Using this function is not required under Sybase, because Sybase SQL Server users can be configured with a default database to use at connection time. You only need this function if your SQL Server has multiple database names, and you want to switch your queries from one database to another one on the same SQLServer, for example if the connection user name has "master" as its default database name and you want to process queries in your application database, or if the username (in fact the loginname in Sybase terminology) has an application database configured for its default database, and you want to process some queries in the "master", "tempdb", or "sybsystemprocs" database.
| ![]() |