[PHP] MS SQL server connection problem.

2012-09-05 Thread Girish Talluru
Hi All, I'm having problem while connecting to MS SQL server from my php program. I tried downloading driver from Microsoft and changed php.ini file but it is showing the following error. This statement I used to connect. $connect = mssql_connect(localhost, PC6, password); This is the error

Re: [PHP] MS SQL server connection problem.

2012-09-05 Thread Serge Fonville
Hi, why do I need a native client or ODBC driver when I already got this driver installed in my system. You need the Native Client on top of the PHP driver. The PHP driver implements functions that enable PHP to talk to SQL Server through the Native Client. HTH Kind regards/met

RE: [PHP] MS SQL server connection problem.

2012-09-05 Thread Jeff Burcher
High Point, NC 27261 (336)886-5221 x229 j...@allredmetal.com -Original Message- From: Girish Talluru [mailto:girish.dev1...@gmail.com] Sent: Wednesday, September 05, 2012 5:57 AM To: php-general@lists.php.net Cc: rahu...@radiare.co.in Subject: [PHP] MS SQL server connection problem

Re: [PHP] MS SQL server connection problem.

2012-09-05 Thread Girish Talluru
] Sent: Wednesday, September 05, 2012 5:57 AM To: php-general@lists.php.net Cc: rahu...@radiare.co.in Subject: [PHP] MS SQL server connection problem. Hi All, I'm having problem while connecting to MS SQL server from my php program. I tried downloading driver from Microsoft

RE: [PHP] MS SQL server connection problem.

2012-09-05 Thread Andrew Ballard
On Sep 5, 2012 7:14 AM, Jeff Burcher j...@allredmetal.com wrote: Hi, I am relatively new as well. I tried both of those methods with no luck. I finally had success using odbc_connect(). See below: $conn = odbc_connect(Driver={SQL Server};Server=$server;Database=$database;, $user,