473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

php accessing MS-SQL Server on windows

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

Sep 28 '05 #1
4 1706
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.

Sep 28 '05 #2
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.

Sep 28 '05 #3

James wrote:
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.


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

Sep 29 '05 #4
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.

Sep 29 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mickel Grönroos | last post by:
Hi! I'm fiddling with Python for Windows (normally using Linux) and as a part of that I want to try to make a simple word frequency list generator to be used in conjunction with Microsoft Word....
2
by: Gustavo Rahal | last post by:
Hi How can I access a MS-Access DB from a linux machine? I am doing a website that will be hosted on Linux and has to access a Windows machine with the MS-Access DB. I read about the PythonWin...
6
by: harry | last post by:
Hi ppl I have a question about memory layout of a class. Consider the code below: class Base1 { virtual void f() { cout << "Base1::f" << endl; } virtual void g() { cout << "Base1::g" <<...
0
by: Curry Snigger | last post by:
Good-day to all, i would like to know if there is any way to use MS Access Objects (i.e. class modules) from Visual Basic 6.0. For example, if i had a class in MS Access such as follows ... ...
2
by: Mike | last post by:
..NET framework 1.2 Hello. We've been accessing a Java COM component from classic ASP for a while now, which works fine. We now need to access it from .NET, but we have no idea how to...
6
by: wASP | last post by:
Hi again, I'm having a problem accessing the ViewState object. I'm using the following two functions - as copied from the MS docs - and state.count is zero in the first - and the while loop in...
2
by: fripper | last post by:
Suppose I have a textbox that was created in a VB .Net web application in design mode ... the name of the textbox is txtCount and its text property is initially set to 10. Now I go into HTML view...
4
by: SteveT | last post by:
I am wanting to populate several treeviews, one for the <TRs> group and one for the <TGsgroup. Is there a simplier way to populate the Treeview than the one I did below? It seems difficult to...
1
by: shaurya | last post by:
1>I have to retrive and display images that are present in a MS Access Database. 2>The images have been inserted in the database by the user by using the Insert Object Functionality of MS Access...
3
by: Porthos | last post by:
I'm currently working on a project for my stage and im having slight problems accessing a locked MS Access table I have password and username for the table but i can't seem to figure out how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.