#39319 [NEW]: Problem to connect to SQLSERVER 2005

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #39319 [NEW]: Problem to connect to SQLSERVER 2005

    From: luiscervantesjane at hotmail dot com
    Operating system: WINDOWS 2003
    PHP version: 5.1.6
    PHP Bug Type: MSSQL related
    Bug description: Problem to connect to SQLSERVER 2005

    Description:
    ------------
    The web server are running in windows 2003, Version Apache/2.0.55 (Win32)
    PHP/5.1.6. And when I try to connect to MSSQL 2005 over windows2003, I
    can`t.
    If the code move to another server windows 2000, with the same Apache
    Version, PHP 5.1.6. The connection is OK.

    I belive that there are a problem the connection with SO windows2003 where
    are running php.
    Thanks

    Reproduce code:
    ---------------
    $SERVER="SATURNO\SATURNO";
    $USER="USER";
    $PASSWD="PASSWORD";
    $link = mssql_connect($SERVER, $USER, $PASSWD) or die ("Could not connect
    MSSQL");
    mssql_select_db($DATABASE,$link) or die ("Could not select database " .
    $DATABASE. " in MSSQL");
    $query = "Select * form TABLA";

    $result = mssql_query($link,$query);
    while ($row = mssql_fetch_array($result)){
    print $row['ALU_NOMBRE'] . "<bR>";
    }

    Expected result:
    ----------------
    Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
    server: SATURNO\SATURNO in C:\WEB\PRUEBAS\SQL2005\index2.php on line 5
    Could not connect MSSQL


    --
    Edit bug report at [url]http://bugs.php.net/?id=39319&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39319&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39319&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39319&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39319&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=39319&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=39319&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39319&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=39319&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=39319&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=39319&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=39319&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=39319&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=39319&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39319&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=39319&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=39319&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39319&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=39319&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39319&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39319&r=mysqlcfg[/url]
    luiscervantesjane at hotmail dot com Guest

  2. Similar Questions and Discussions

    1. Can?t connect ColdFusion Mx 7 to SQL server 2005
      Hi, I can't connect the ColdFusion Mx 7 to SQL server 2005, I have SQL 2005 Trial Version running on Win 2003 server, any suggestion ?
    2. Unable to connect MX7 to MS SQL 2005
      I get the following error when attempting setup a database connection. Connection verification failed for data source: q01nw...
    3. [Macromedia][SQLServer JDBC Driver][SQLServer]Internal
      I'm running an export process which takes data and dumps it to a text file. The query used to build it can contain large amounts of information in...
    4. Problem with SQLServer connections
      I have an application that does a ridiculous number of queries -- its purpose is to extract records from one database and insert them into a...
    5. MX7 ---> Remote SQLSERVER connect?
      Spend a few hours so far trying to figure this one out. Trying to connect MX7 on one box to a SQL SERVER 2005 on a different box. Here's the...
  3. #2

    Default #39319 [Opn->Bgs]: Problem to connect to SQLSERVER 2005

    ID: 39319
    Updated by: [email]fmk@php.net[/email]
    Reported By: luiscervantesjane at hotmail dot com
    -Status: Open
    +Status: Bogus
    Bug Type: MSSQL related
    Operating System: WINDOWS 2003
    PHP Version: 5.1.6
    New Comment:

    The MSSQL extension uses ntwdblib to connect to the server. This
    Microsoft library can be configured with Netbios or TCP/IP as the
    default library.

    Use the Client Network Tools to specify the default protocol and to
    create server aliases. A server alias can be defined to use a specific
    host name and port numbr and you can use the alias as the first
    parameter to mssql_connect().


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-31 11:03:36] luiscervantesjane at hotmail dot com

    Description:
    ------------
    The web server are running in windows 2003, Version Apache/2.0.55
    (Win32) PHP/5.1.6. And when I try to connect to MSSQL 2005 over
    windows2003, I can`t.
    If the code move to another server windows 2000, with the same Apache
    Version, PHP 5.1.6. The connection is OK.

    I belive that there are a problem the connection with SO windows2003
    where are running php.
    Thanks

    Reproduce code:
    ---------------
    $SERVER="SATURNO\SATURNO";
    $USER="USER";
    $PASSWD="PASSWORD";
    $link = mssql_connect($SERVER, $USER, $PASSWD) or die ("Could not
    connect MSSQL");
    mssql_select_db($DATABASE,$link) or die ("Could not select database " .
    $DATABASE. " in MSSQL");
    $query = "Select * form TABLA";

    $result = mssql_query($link,$query);
    while ($row = mssql_fetch_array($result)){
    print $row['ALU_NOMBRE'] . "<bR>";
    }

    Expected result:
    ----------------
    Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
    server: SATURNO\SATURNO in C:\WEB\PRUEBAS\SQL2005\index2.php on line 5
    Could not connect MSSQL



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39319&edit=1[/url]
    fmk@php.net Guest

  4. #3

    Default #39319 [Bgs]: Problem to connect to SQLSERVER 2005

    ID: 39319
    User updated by: luiscervantesjane at hotmail dot com
    Reported By: luiscervantesjane at hotmail dot com
    Status: Bogus
    Bug Type: MSSQL related
    Operating System: WINDOWS 2003
    PHP Version: 5.1.6
    New Comment:

    Hi.
    Who can I configure this?
    Have I to install Client Network Tools in the server web o reconfigure
    the Client Network Tools has is installed in the MSSQL.

    I have runnig other web server (XP Pro) and move the code in the other
    PC and the connection is right. Do you know why..

    Thanks


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-10-31 15:45:15] [email]fmk@php.net[/email]

    The MSSQL extension uses ntwdblib to connect to the server. This
    Microsoft library can be configured with Netbios or TCP/IP as the
    default library.

    Use the Client Network Tools to specify the default protocol and to
    create server aliases. A server alias can be defined to use a specific
    host name and port numbr and you can use the alias as the first
    parameter to mssql_connect().

    ------------------------------------------------------------------------

    [2006-10-31 11:03:36] luiscervantesjane at hotmail dot com

    Description:
    ------------
    The web server are running in windows 2003, Version Apache/2.0.55
    (Win32) PHP/5.1.6. And when I try to connect to MSSQL 2005 over
    windows2003, I can`t.
    If the code move to another server windows 2000, with the same Apache
    Version, PHP 5.1.6. The connection is OK.

    I belive that there are a problem the connection with SO windows2003
    where are running php.
    Thanks

    Reproduce code:
    ---------------
    $SERVER="SATURNO\SATURNO";
    $USER="USER";
    $PASSWD="PASSWORD";
    $link = mssql_connect($SERVER, $USER, $PASSWD) or die ("Could not
    connect MSSQL");
    mssql_select_db($DATABASE,$link) or die ("Could not select database " .
    $DATABASE. " in MSSQL");
    $query = "Select * form TABLA";

    $result = mssql_query($link,$query);
    while ($row = mssql_fetch_array($result)){
    print $row['ALU_NOMBRE'] . "<bR>";
    }

    Expected result:
    ----------------
    Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
    server: SATURNO\SATURNO in C:\WEB\PRUEBAS\SQL2005\index2.php on line 5
    Could not connect MSSQL



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39319&edit=1[/url]
    luiscervantesjane at hotmail dot com Guest

  5. #4

    Default #39319 [Bgs]: Problem to connect to SQLSERVER 2005

    ID: 39319
    Updated by: [email]fmk@php.net[/email]
    Reported By: luiscervantesjane at hotmail dot com
    Status: Bogus
    Bug Type: MSSQL related
    Operating System: WINDOWS 2003
    PHP Version: 5.1.6
    New Comment:

    The client tools are installed on the MSSQL server by default.
    If the Web server and MSSQL server are running on the same box there is
    no need for special actions.
    If the web server is running on another box you can install the client
    tools from the CD on the web server.


    Previous Comments:
    ------------------------------------------------------------------------

    [2006-11-02 09:34:45] luiscervantesjane at hotmail dot com

    Hi.
    Who can I configure this?
    Have I to install Client Network Tools in the server web o reconfigure
    the Client Network Tools has is installed in the MSSQL.

    I have runnig other web server (XP Pro) and move the code in the other
    PC and the connection is right. Do you know why..

    Thanks

    ------------------------------------------------------------------------

    [2006-10-31 15:45:15] [email]fmk@php.net[/email]

    The MSSQL extension uses ntwdblib to connect to the server. This
    Microsoft library can be configured with Netbios or TCP/IP as the
    default library.

    Use the Client Network Tools to specify the default protocol and to
    create server aliases. A server alias can be defined to use a specific
    host name and port numbr and you can use the alias as the first
    parameter to mssql_connect().

    ------------------------------------------------------------------------

    [2006-10-31 11:03:36] luiscervantesjane at hotmail dot com

    Description:
    ------------
    The web server are running in windows 2003, Version Apache/2.0.55
    (Win32) PHP/5.1.6. And when I try to connect to MSSQL 2005 over
    windows2003, I can`t.
    If the code move to another server windows 2000, with the same Apache
    Version, PHP 5.1.6. The connection is OK.

    I belive that there are a problem the connection with SO windows2003
    where are running php.
    Thanks

    Reproduce code:
    ---------------
    $SERVER="SATURNO\SATURNO";
    $USER="USER";
    $PASSWD="PASSWORD";
    $link = mssql_connect($SERVER, $USER, $PASSWD) or die ("Could not
    connect MSSQL");
    mssql_select_db($DATABASE,$link) or die ("Could not select database " .
    $DATABASE. " in MSSQL");
    $query = "Select * form TABLA";

    $result = mssql_query($link,$query);
    while ($row = mssql_fetch_array($result)){
    print $row['ALU_NOMBRE'] . "<bR>";
    }

    Expected result:
    ----------------
    Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
    server: SATURNO\SATURNO in C:\WEB\PRUEBAS\SQL2005\index2.php on line 5
    Could not connect MSSQL



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39319&edit=1[/url]
    fmk@php.net Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139