Results 1 to 5 of 5

Thread: php connection to MSSQL Server 2008

  1. #1
    Join Date
    Sep 2009
    Location
    Tehran, Iran
    Beans
    56
    Distro
    Ubuntu 11.04 Natty Narwhal

    php connection to MSSQL Server 2008

    hi,

    I'm a php programmer, Formerly I worked with mysql and I have no problem. In a new project I should work with MSSQL server DataBase.
    My problem is that I'm programming in linux platform (ubuntu lucid), so I run windows 7 on vitualbox, Install SQL Server, Create a Host-Only Network from ubuntu to windows 7, but I couldn't connect to SQL SERVER through php. Now I don't know what should i do...

  2. #2
    Join Date
    Nov 2009
    Beans
    1,081

    Re: php connection to MSSQL Server 2008

    A logical first step would be to determine whether MSSQL is actually receiving your connection requests. Assuming that MS was not completely insane, they should have a log file containing such information. If it doesn't see the request at all, then I'd want to test the networking with something reasonably known-good (i.e. set up something else that accepts network connections and see whether you simply don't have the networking link at all, or whether they're networked but maybe your client's connection configuration is simply borked).

  3. #3
    Join Date
    Sep 2009
    Location
    Tehran, Iran
    Beans
    56
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: php connection to MSSQL Server 2008

    Thanks, but I'm kinda newbie in networking can you explain more...

  4. #4
    Join Date
    Sep 2009
    Location
    Tehran, Iran
    Beans
    56
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: php connection to MSSQL Server 2008

    I think problem is my connection to virtual machine,
    I set up IIS on windows seven and try to access to it from ubuntu but connection time outed. I don't understand what's wrong, while I can ping the virtual machine IP4 address.

    I have a little knowledge of networking, sorry if I do or say something wrong

  5. #5
    Join Date
    Feb 2006
    Beans
    468

    Re: php connection to MSSQL Server 2008

    HELLo!

    Check that there are no firewalls blocking the connection attempts.

    Happy codin'!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •