<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connect SQL server using SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796124#M255434</link>
    <description>&lt;P&gt;What OS does your SAS server run on? If you want to specify everything in the database connection string try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname SQLSRVR odbc noprompt = "server=SQLServerName;DRIVER=SQL Server Native Client 11.0;Trusted Connection=yes" DATABASE = MyDatabase schema = dbo;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will need to know the SQL Server server name, the ODBC driver name, the database and schema. Check with your SAS administrator who should know all the details. If you specify the DSN option then that has to be defined separately and how you do that depends on the SAS server OS.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 19:46:05 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-02-14T19:46:05Z</dc:date>
    <item>
      <title>Connect SQL server using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796086#M255415</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;good day expects.am trying to link to an SQL Server&amp;nbsp; using SAS&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I've got an example:&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;CODE class=""&gt;LIBNAME ADPT ODBC DSN='PSQLETSCDSAG01' SCHEMA=HMLN_MIS;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;LIBNAME ADPT ODBC DSN='PSQLETSCDSAG01' SCHEMA=DBO;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [DataDirect][ODBC lib] Data source name not found and no default driver specified&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 17:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796086#M255415</guid>
      <dc:creator>Rixile106</dc:creator>
      <dc:date>2022-02-14T17:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Connect SQL server using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796098#M255423</link>
      <description>Is SAS on the same server as SQL?&lt;BR /&gt;Where are the odbc schema's defined? &lt;BR /&gt;Ex. ODBC Data Sources 32-bit on the machine where SAS runs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards, Jos</description>
      <pubDate>Mon, 14 Feb 2022 17:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796098#M255423</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2022-02-14T17:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connect SQL server using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796099#M255424</link>
      <description>&lt;P&gt;Did you set up a DSN connection on your server/computer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/bicdc/9.4/bidsag/p1t9q2knb9tq5ln101dkrdsa9ymf.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/bicdc/9.4/bidsag/p1t9q2knb9tq5ln101dkrdsa9ymf.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIBNAME is the second step in this process.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 17:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796099#M255424</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-14T17:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connect SQL server using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796124#M255434</link>
      <description>&lt;P&gt;What OS does your SAS server run on? If you want to specify everything in the database connection string try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname SQLSRVR odbc noprompt = "server=SQLServerName;DRIVER=SQL Server Native Client 11.0;Trusted Connection=yes" DATABASE = MyDatabase schema = dbo;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will need to know the SQL Server server name, the ODBC driver name, the database and schema. Check with your SAS administrator who should know all the details. If you specify the DSN option then that has to be defined separately and how you do that depends on the SAS server OS.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 19:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796124#M255434</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-02-14T19:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connect SQL server using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796184#M255468</link>
      <description>&lt;P&gt;Looks like the connection to SQL server has not been set.&lt;BR /&gt;Your SAS administrator should be able to help.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 00:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connect-SQL-server-using-SAS/m-p/796184#M255468</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-02-15T00:18:34Z</dc:date>
    </item>
  </channel>
</rss>

