Connecting Tech Pros Worldwide Help | Site Map

php accessing MS-SQL Server on windows

  #1  
Old September 28th, 2005, 06:45 PM
amorphous999
Guest
 
Posts: n/a
I will be creating a small web site using php/apache/SQL Server running
on a Win2000 server. It sounds as if there a number of alternatives
for accessing SQL Server: mssql* functions, ADOdb object, using a ADO
COM object, ODBC calls, etc. Has anybody out there evaluated the
alternatives for speed, error handling, quality of documentation, etc?


TIA

  #2  
Old September 28th, 2005, 07:05 PM
Chung Leong
Guest
 
Posts: n/a

re: php accessing MS-SQL Server on windows


Don't use ADO COM--it leaks memory when used in PHP. The mssql_*
functions have the problem of truncating varchars longer than 255
characters (need to cast them to text type first), but work fine
otherwise.

  #3  
Old September 29th, 2005, 12:15 AM
James
Guest
 
Posts: n/a

re: php accessing MS-SQL Server on windows


Do not use the MSSQL functions -- they fucking suck, filled with errors
and you'll struggle to get long text values out of fields over 255
characters in length. I beat my head on them for weeks before I
abandoned MS SQL Server as a PHP database. ADOdb is leaking as Chung
Leong said but the ODBC functions are now performing well for me .....
they appear to be the only stable alternative.

If you are using the MS SQL Server functions you supposidly bypass the
255 character issue however you'll need some extra software to install
and I never managed to get them running.

It is worth noting that this is not the fault of PHP but the SQL Server
itself -- you can trip similar issues using ASP.

  #4  
Old September 29th, 2005, 03:05 AM
amorphous999
Guest
 
Posts: n/a

re: php accessing MS-SQL Server on windows



James wrote:[color=blue]
> Do not use the MSSQL functions -- they fucking suck, filled with errors
> and you'll struggle to get long text values out of fields over 255
> characters in length. I beat my head on them for weeks before I
> abandoned MS SQL Server as a PHP database. ADOdb is leaking as Chung
> Leong said but the ODBC functions are now performing well for me .....
> they appear to be the only stable alternative.
>
> If you are using the MS SQL Server functions you supposidly bypass the
> 255 character issue however you'll need some extra software to install
> and I never managed to get them running.
>
> It is worth noting that this is not the fault of PHP but the SQL Server
> itself -- you can trip similar issues using ASP.[/color]

Are you referring to the same thing as Chung Leong? I think Chung is
referring to creating an ADO COM object in PHP, whereas you are
referring to the ADOdb Pear class. If neither works well, the point is
moot.

Are the ODBC functions in a class or are they an API?

TIA

  #5  
Old September 29th, 2005, 03:35 AM
James
Guest
 
Posts: n/a

re: php accessing MS-SQL Server on windows


I was referring to the ADO COM -- I've avoided Pear for a while, I feel
like its overly abstract and cumbersomly slow. Re: ODBC -- Its a built
in function set on Windows PHP install - just a regular extension on
every other platform.

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not being able to send mails through PHP using SMTP oopsbabies@hotmail.com answers 7 January 5th, 2007 08:35 AM
php odbc support for ms access harsha.patibandla@gmail.com answers 3 November 3rd, 2006 04:35 AM
Low cost ASP/VB/Access server solution for development? Colin McNaught answers 6 November 13th, 2005 04:24 AM
PHP Windows domain user/machine Ghazan Haider answers 1 July 17th, 2005 02:49 PM
Use PHP to authenticate to AD Bonegavel answers 15 July 17th, 2005 01:25 PM