Re: [pear-webmaster] questions about DB connet of MSSQL

From: Date: Fri, 14 Jun 2002 10:31:31 +0000
Subject: Re: [pear-webmaster] questions about DB connet of MSSQL
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-100@lists.php.net to get a copy of this message
leohu wrote: > > 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.. > Looks obvious for me that in Mysql the database "test" exists but not in MS SQL. Tomas V.V.Cox

« previous php.pear.webmaster (#100) next »