title: SQL Server 2014 linked server to Pervasive database
body: <p>I'm trying to create a linked server from SQL Server to a Pervasive database.</p>
  
  <p>I have the 64-bit System DSN configured and working:</p>
  
  <p><a href="https://i.stack.imgur.com/Z3M59.jpg" rel="nofollow noreferrer">ODBC DSN set-up</a></p>
  
  <p>and setting up the linked server thus:</p>
  
  <p><a href="https://i.stack.imgur.com/IlvNW.jpg" rel="nofollow noreferrer">Linked server set-up</a></p>
  
  <p>with security set to "Be made without using a security context" (which is correct).</p>
  
  <p>Clicking OK to create, I get this message:</p>
  
  <blockquote>
    <p>===================================
    The linked server has been created but failed a connection test. Do</p>
    
    <h1>you want to keep the linked server?</h1>
    
    <p>An exception occurred while executing a Transact-SQL statement or
    batch. (Microsoft.SqlServer.ConnectionInfo)
    ------------------------------ Program Location:
       at
    Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String
    sqlCommand, ExecutionTypes executionType, Boolean retry)    at
    Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQuery(String
    cmd, Boolean retry)    at
    Microsoft.SqlServer.Management.Smo.LinkedServer.TestConnection()    at
    Microsoft.SqlServer.Management.SqlManagerUI.LinkedServerProperties.DoPreProcessExecution(RunType</p>
    
    <h1>runType, ExecutionMode&amp; executionResult)</h1>
    
    <p>The OLE DB provider "MSDASQL" for linked server "WTT" reported an
    error. The provider did not give any information about the error.
    Cannot initialize the data source object of OLE DB provider "MSDASQL"
    for linked server "WTT". (.Net SqlClient Data Provider)
    ------------------------------ For help, click: <a href="http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&amp;ProdVer=12.00.5207&amp;EvtSrc=MSSQLServer&amp;EvtID=7399&amp;LinkId=20476" rel="nofollow noreferrer">http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&amp;ProdVer=12.00.5207&amp;EvtSrc=MSSQLServer&amp;EvtID=7399&amp;LinkId=20476</a>
    ------------------------------ Server Name: CHOMCHOM\CHOMCHOM Error Number: 7399 Severity: 16 State: 1 Procedure: sp_testlinkedserver Line
    Number: 1
    ------------------------------ Program Location:
       at
    Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction
    action, Object execObject, DataSet fillDataSet, Boolean
    catchException)    at
    Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(String
    sqlCommand, ExecutionTypes executionType, Boolean retry)</p>
  </blockquote>
  
  <p>To me, that looks like the linked server can't even see the System DSN. If I do the same with a made up data source (e.g. "WTT-boo"), I get the same message.</p>
  
  <p>I've set these up before in exactly the same way, but can't seem to figure this one out.</p>