title: Connect to SQL Server 2014 in Go Lang
body: <p>I had a working database connection on a windows 7 machine to SQL Server 2008 R2 using:</p>
  
  <pre><code>     db, err = sqlx.Open("lodbc", connString)
  </code></pre>
  
  <p>importing the following packages</p>
  
  <pre><code>     "github.com/LukeMauldin/lodbc"
       "github.com/jmoiron/sqlx"
  </code></pre>
  
  <p>But now using the same driver and changing the connection string to a 2014 SQL Server database located on a remote windows 8 machine, I get a successful connection but a sqlx query breaks saying</p>
  
  <blockquote>
    <p>datasource 2015/03/23 09:09:37 http: panic serving 127.0.0.1:49346: {IM002} [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified</p>
  </blockquote>
  
  <p>Is there another driver I can use? I tried <a href="https://code.google.com/p/odbc/" rel="nofollow">code.google.com/p/odbc</a> and database/mssql packages and those didn't work.</p>
  
  <p>Thanks</p>