<?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: Creating OLE DB Connection for DI Studio Tables in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-OLE-DB-Connection-for-DI-Studio-Tables/m-p/487017#M15178</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/20678"&gt;@jwhite&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the error is occurring because the SQL Server Native Client 11 (SQLNCI11) OLE DB provider is not installed on the machine where SAS is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this, which may help you get up and running more quickly. Use the Microsoft OLE DB Provider for SQL Server provider. I think it&amp;nbsp;is included on the machine by default (I may be wrong about this). Here is an example LIBNAME statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myoledb oledb init_string="provider=Microsoft OLE DB Provider for SQL Server;
data source=mysqlserver.mycompany.com;
user id=myuser;password=SomePW1";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code can help but I think you have to run it on the machine where your SAS server is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myoledb oledb prompt=yes;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will invoke the Data Link Properties dialog. Do you see SQL Server Native Client 11.0?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OLE_DB__Data_Link_Properties.png" style="width: 314px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22462i5F11E85AC6C98B6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OLE_DB__Data_Link_Properties.png" alt="OLE_DB__Data_Link_Properties.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't see it then someone will need to install the SQL Server Native Client 11.0. If you do see it there is a different problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following SAS code may help you...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
  Good for exploring...
*/
libname myoledb oledb prompt=yes;

/*
  This works...
*/
libname myoledb oledb init_string="provider=SQL Server Native Client 11.0;
data source=mysqlserver.mycompany.com;
user id=myuser;password=SomePW1";

/* 
  This works...
*/
libname myoledb oledb init_string="provider=SQLNCLI11;
data source=mysqlserver.mycompany.com;
user id=myuser;password=SomePW1";&lt;BR /&gt;
/*
  ERROR: Error trying to establish connection: Unable to create Data Source.: Class not registered
*/
libname myoledb oledb init_string="provider=SQLNCLI13;
data source=mysqlserver.mycompany.com;
user id=myuser;password=SomePW1";&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;  This works and used a different OLE DB provider&lt;BR /&gt;*/&lt;BR /&gt;libname myoledb oledb init_string="provider=Microsoft OLE DB Provider for SQL Server;&lt;BR /&gt;data source=mysqlserver.mycompany.com;&lt;BR /&gt;user id=myuser;password=SomePW1";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2018 15:28:39 GMT</pubDate>
    <dc:creator>JBailey</dc:creator>
    <dc:date>2018-08-15T15:28:39Z</dc:date>
    <item>
      <title>Creating OLE DB Connection for DI Studio Tables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-OLE-DB-Connection-for-DI-Studio-Tables/m-p/476925#M14938</link>
      <description>&lt;P&gt;One of our near future goals is to try and have DI Studio write to tables on MS SQL server.&lt;/P&gt;
&lt;P&gt;I've been making it a game attempt to follow this document, but haven't found success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/techsup/technote/ts783.pdf" target="_self"&gt;http://support.sas.com/techsup/technote/ts783.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some questions as I think one of these is where I'm getting tripped up...and they're related to SAS Management Console.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) In Management Console, when I create the OLE DB server, i need to provide a Datasource. Is this not a database on the SQL server we wish to connect to. Example: "SQL Server\Database"&lt;/P&gt;
&lt;P&gt;2) The document says to provide "SQLNCI11" as the 'Provider'. Is this always the case or should I look for something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error I'm getting is "ERROR: Error trying to establish connection: Unable to create Data Source.: Class not registered". This appears in the log right after the log writes out the Provider and Datasource which is why I believe I have one of these wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;-Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 20:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-OLE-DB-Connection-for-DI-Studio-Tables/m-p/476925#M14938</guid>
      <dc:creator>jwhite</dc:creator>
      <dc:date>2018-07-10T20:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating OLE DB Connection for DI Studio Tables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-OLE-DB-Connection-for-DI-Studio-Tables/m-p/487017#M15178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/20678"&gt;@jwhite&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the error is occurring because the SQL Server Native Client 11 (SQLNCI11) OLE DB provider is not installed on the machine where SAS is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this, which may help you get up and running more quickly. Use the Microsoft OLE DB Provider for SQL Server provider. I think it&amp;nbsp;is included on the machine by default (I may be wrong about this). Here is an example LIBNAME statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myoledb oledb init_string="provider=Microsoft OLE DB Provider for SQL Server;
data source=mysqlserver.mycompany.com;
user id=myuser;password=SomePW1";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code can help but I think you have to run it on the machine where your SAS server is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myoledb oledb prompt=yes;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will invoke the Data Link Properties dialog. Do you see SQL Server Native Client 11.0?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OLE_DB__Data_Link_Properties.png" style="width: 314px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22462i5F11E85AC6C98B6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="OLE_DB__Data_Link_Properties.png" alt="OLE_DB__Data_Link_Properties.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't see it then someone will need to install the SQL Server Native Client 11.0. If you do see it there is a different problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following SAS code may help you...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
  Good for exploring...
*/
libname myoledb oledb prompt=yes;

/*
  This works...
*/
libname myoledb oledb init_string="provider=SQL Server Native Client 11.0;
data source=mysqlserver.mycompany.com;
user id=myuser;password=SomePW1";

/* 
  This works...
*/
libname myoledb oledb init_string="provider=SQLNCLI11;
data source=mysqlserver.mycompany.com;
user id=myuser;password=SomePW1";&lt;BR /&gt;
/*
  ERROR: Error trying to establish connection: Unable to create Data Source.: Class not registered
*/
libname myoledb oledb init_string="provider=SQLNCLI13;
data source=mysqlserver.mycompany.com;
user id=myuser;password=SomePW1";&lt;BR /&gt;&lt;BR /&gt;/*&lt;BR /&gt;  This works and used a different OLE DB provider&lt;BR /&gt;*/&lt;BR /&gt;libname myoledb oledb init_string="provider=Microsoft OLE DB Provider for SQL Server;&lt;BR /&gt;data source=mysqlserver.mycompany.com;&lt;BR /&gt;user id=myuser;password=SomePW1";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 15:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-OLE-DB-Connection-for-DI-Studio-Tables/m-p/487017#M15178</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2018-08-15T15:28:39Z</dc:date>
    </item>
  </channel>
</rss>

