Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    2

    Question Unanswered: MSSQL ODBC (SQL) connection issue (sqlstate 2800)

    I am trying to make an ODBC connection to a MSSQL 2K server on a remote machine. I am using the SQL Server driver and can see the server in the drop down list when asked which server I would like to connect to. I am using SQL authentication over TCP/IP.

    The error occurs when ODBC tries to connet to SQL server to obtain the default settings. The error I receive is as follows:

    Connection Failed;
    sqlstate '28000';
    sql server error: 18456;
    [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'XXXX'

    I have tried setting up alternate SQL Server users with varying security rights on the server but am not able to setup the ODBC connection.

    I am setting the ODBC connection up on a windows XP SP2 machine.
    The remote server is running Windows server 2003 (patched upto date) and MS SQL server 2K (SP3). The connection is over a LAN and does not pass through any firewalls (hardware or software). I can create the ODBC connection without issue locally on the server.

    This is my first time creating an ODBC connection to a Windows 2003 Server and I am wondering if there is some additional config I may have missed out.

    Many thanks.

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    what authentication mode is your sql server running in? windows only or mixed mode?
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    May 2006
    Posts
    2
    The server is running in mixed mode for this instance. I have tried connecting using windows authentication, but the connection times out at the same stage as above.

    Many thanks.

  4. #4
    Join Date
    May 2006
    Posts
    16
    1. make sure that you can ping the server
    2. Open your Security\Logins, check the "Database Access" and "Server Roles" that are set to the correct setting.

Posting Permissions

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