Skip to Content.
Sympa Menu

freetds - Re: sql server 7 problem - 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: sql server 7 problem - php
  • Date: Wed, 21 Mar 2001 21:28:02 -0600




> I am trying to connect to sqlserver 7 from linux/php.
>
> I am using redhat 7, php 4.0.4pl1, sql server 7, freetds 0.51
>
> I am trying to connect like this
>
> $mssqlcon = mssql_pconnect("the_ip_of_the_sqlserver", "myusername",
> "mypassword");

That could be the problem there. The IP address and port number of the
server go in the interface file (default location is the directory where
FreeTDS is installed). Associated with that info is a server name (not DNS
name). That's what you use in the connect.


- 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