title: Linked Server Connection Error
body: <p>I created a linked server to my machine to query from other server using this script.</p>
  
  <pre><code>EXEC sp_addlinkedserver 
      @server = N'serverdatabase\vtidbserver', 
      @provider = N'SQLOLEDB', 
      @datasrc = N'VTI_FIS', 
      @srvproduct=''
  EXEC sp_addlinkedsrvlogin 
      @rmtsrvname=N'serverdatabase\vtidbserver',
      @useself=N'False',
      @locallogin=NULL,
      @rmtuser=N'vtidbadmin',
      @rmtpassword='vallacar@654321'
  </code></pre>
  
  <p>now the script successfully execute but when it try to query, this is the error message that i got:</p>
  
  <pre><code>OLE DB provider "SQLNCLI10" for linked server "serverdatabase\vtidbserver" returned message "Login timeout expired".
  OLE DB provider "SQLNCLI10" for linked server "serverdatabase\vtidbserver" returned message "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.".
  Msg 53, Level 16, State 1, Line 0
  Named Pipes Provider: Could not open a connection to SQL Server [53]. 
  </code></pre>
  
  <p>But when using management studio i can connect to the server successfully.
  Need to help this problem, TIA</p>