Re: PEAR-MSSQL
| From: | Sebastian Roebke | Date: | Mon, 10 Mar 2003 16:57:40 +0000 |
| Subject: | Re: PEAR-MSSQL | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4136@lists.php.net to get a copy of this message | ||
Hi Lukasz,
could you try leaving the host out of the dsn?
This would be:
odbc://sa:admin@pubs
Hope this helps,
Sebastian Röbke
----- Original Message -----
From: "Łukasz Rauch" <lrauch@agh.edu.pl>
To: <pear-general@lists.php.net>
Sent: Monday, March 10, 2003 3:20 PM
Subject: [PEAR] PEAR-MSSQL
Hi,
I have a question about establishing the connection with Microsoft SQL
Server using DB class from PEAR. I tried directly and through ODBC and
nothing. Can anybody tell me what to do? Here is my code:
[code] $conn = DB::connect("odbc://sa:admin@127.0.0.1/pubs", true); [/code]
where pubs is DSN for proper database. Thanx
Łukasz