title: Connect SAS to a Microsoft SQL Server database
body: <p>I'd like to connect SAS to a Microsoft SQL Server database but I didn't succeed.</p>
  
  <p>I already have a database connection using a NT authentication.</p>
  
  <p>For instance, when I want to connect R (the statistical sofware) to the db, I do that</p>
  
  <blockquote>
    <p>ch_db &lt;- odbcConnect("sql_nt")</p>
  </blockquote>
  
  <p>But when I do that in SAS, it doesn't work :</p>
  
  <blockquote>
    <p>LIBNAME sql ODBC DSN=’sql_nt’;</p>
  </blockquote>
  
  <p>I have this error message :</p>
  
  <blockquote>
    <p>ERROR: Libname SQL is not assigned. ERROR: Error in the LIBNAME
    statement. ERROR 22-7: Invalid option name SQL_NT.</p>
  </blockquote>
  
  <p>I probably do a stupid mistake, but I don't see it.</p>