Skip to Content.
Sympa Menu

freetds - Re: FreeTDS && PHP

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Darryl Friesen <Darryl.Friesen AT usask.ca>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: FreeTDS && PHP
  • Date: Thu, 15 Nov 2001 08:17:20 -0600


> - FreeTDS(TDSVER=4.2, CVS tds.h.in,v 1.26 2001/09/23 13:20:45)
> - PHP(4.0.6)
> - MSSQL(2000)
>
> When I use --with-sybase-ct (ctlib) I have problem with varchar/text
> longer than 254.
> I use varchar(3000) in MSSQL, but when I get this value via FreeTDS
> - I use convert(text, filed) - I know this error.

You need to use TDS 7.0 (not 4.2) for varchar and text fields.

> And the last question: 'ext/mssql/*' can be compile only for Windows?

I can use either the sybase_* functions or the mssql_* funtions in PHP
without problems (Solaris 8 machine). I think both get compiled in when you
you build PHP with --with-sybase or --with-sybase-ct.


- Darryl

----------------------------------------------------------------------
Darryl Friesen, B.Sc., Programmer/Analyst Darryl.Friesen AT usask.ca
Education & Research Technology Services, http://gollum.usask.ca/
Department of Computing Services,
University of Saskatchewan
----------------------------------------------------------------------
"Go not to the Elves for counsel, for they will say both no and yes"






Archive powered by MHonArc 2.6.24.

Top of Page