函式:mssql_pconnect() |
mssql_pconnect开启 MS SQL 伺服器长期连线。 语法: int mssql_pconnect(string [servername], string [username], string [password]); 传回值: 整数 函式种类: 资料库功能
本函式和 mssql_connect() 雷同。不同的地方在于使用本函式开启资料库时,程式会先寻找是否曾经执行过本函式,若执行过则传回先前执行的 ID。另一个不同的地方是本函式无法使用 mssql_close() 关闭资料库。参数 servername 为欲连上的资料库伺服器名称。参数 username 及 password 可省略,分别为连线使用的帐号及密码。
|