SQL Server does not allow remote connections.".

  • HI,

    I HAVE LINKED SERVER ....

    I M EXECUTING A FROM SERVER1

    select * from [SERVER2\dev].COMPANYNAME_prod.sys.sysobjects

    ITS GIVING ERROR:

    OLE DB provider "SQLNCLI" for linked server "SERVER2\dev" returned message "Login timeout expired".

    OLE DB provider "SQLNCLI" for linked server "SERVER2\dev" returned message "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".

    Msg 65535, Level 16, State 1, Line 0

    SQL Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].

    PEASE SUGGEST ANY SOLUTION

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Hi,

    Try these steps.

    Start > Programs > SqlServer2005 > ConfigurationTools > SQLServer SurfaceArea Configuration >Click Surface Area Configuration For Services and Connections > Click Remote Connections > Click Local and Remote connections and within that Select Using both TCP/IP and named Pipes > Apply > Ok...

    Hope this helps....:)

    Best Regards,
    TALIB ALI KHAN
    MCTS
    http://www.onlineasp.net

  • thanks for your suggestion but it is already enabled.....any oher IDEA?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Enable SQL browser on the SQL server..

  • Already Enabled

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • hi Guys ,

    Working on same error any workaround please?

  • have you tested your linked server? if not (Goto->server objects->linked servers->right click yourlinkedserver and click test connection)

    if the test is successfull you have access to your remote connection. if the test failed. try to create a .udl file and check you can connect to the remote server.

    Also one thing you need to check is the remote server has enable "allow remote connection to this server"

    you can check this under instance properties->connections also check the remote query timeout to more than 5 minutes or to 0(unlimited).

    Please let me know the status after this.

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply