I installed the FreeTDS with PHP4. I did everything as it must be done, but when I run the mssql_connect script, it says that was unable to connect to my server.
What is happening? I'd like some help please!!!!

Thank you.

Phill Almeida

    What operating system?

    Does it help if you use sybase_connect() instead of mssql_connect()
    And yes, I noted that you want to connect to an MS SQL server.

      Thank you for your help but I got it working now. I compiled FreeTDS with the option for version 7.0 and it worked fine. The problem was with the version. The MS SQL server is 7.0 version and the Free TDS was compiled with the 4.2 version.

      By the way, I am using Linux RedHat 7.0.

      Felipe Almeida

        Strange.
        I'm using FreeTDS with the v. 7 option and I have no trouble connecting to a MS SQL 7sp2 database-system.

        Anyways:
        It's good that you got it working.

          Can I get it work with Sybase ASA7.0(SQL Anywhere)?

            I guess so but maybe you have to compile (run ./configure) with another option. And that option I don't know, sorry!!

            Felipe Almeida

              Write a Reply...