questions about DB connet of MSSQL
| From: | leohu | Date: | Fri, 14 Jun 2002 09:14:10 +0000 |
| Subject: | questions about DB connet of MSSQL | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-99@lists.php.net to get a copy of this message | ||
Dear Sir/Madam:
How can I connet MicroSoft SQL server while using Pear?
Here is my code:
---------------------------------------------
$user = 'sa';
$pass = 'sa';
$host = 'local';
$db_name = 'test';
$dsn = "mssql://$user:$pass@$host/$db_name";
---------------------------------------------
I had successed in Mysql while use such configuration.But I don't know
why it return a error message:"No such database" when I used MSSQL..
Thanks for ur help.
Warm Regards,
Leo Hu