<?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 to MS SQL 2014 via ODB in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376225#M11440</link>
    <description>&lt;P&gt;Test your credentials with the native DB client; consult with the DB admins.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jul 2017 12:55:32 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-07-15T12:55:32Z</dc:date>
    <item>
      <title>Connect to MS SQL 2014 via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376223#M11439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to connect to a MS SQL 2014 server.&lt;/P&gt;&lt;P&gt;I am using this statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME onbaset ODBC DSN=ONBASE_NISQL2 USER=sa PASSWORD="{SAS002}XXXXXXXXXXXXXXXXXXXX" SCHEMA=ONBASE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to connect and I get this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;18 LIBNAME onbaset ODBC DSN=ONBASE_NISQL2 USER=sa&lt;BR /&gt;18 ! PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX SCHEMA=ONBASE;&lt;/P&gt;&lt;P&gt;NOTE: Libref ONBASET was successfully assigned as follows:&lt;BR /&gt;Engine: ODBC&lt;BR /&gt;Physical Name: ONBASE_NISQL2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I dont see any tables or views.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing an option in the libname statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 13:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376223#M11439</guid>
      <dc:creator>dirks</dc:creator>
      <dc:date>2017-07-15T13:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to MS SQL 2014 via ODB</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376225#M11440</link>
      <description>&lt;P&gt;Test your credentials with the native DB client; consult with the DB admins.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 12:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376225#M11440</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-15T12:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to MS SQL 2014 via ODB</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376227#M11441</link>
      <description>&lt;P&gt;I did that. I can login in with that account and I can see everything.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 13:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376227#M11441</guid>
      <dc:creator>dirks</dc:creator>
      <dc:date>2017-07-15T13:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to MS SQL 2014 via ODB</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376242#M11443</link>
      <description>&lt;P&gt;Then look at the names of tables, views and columns. They must adhere to SAS standards (max 32 characters, consist only of standard letters, digits and underlines, must start with a letter or underline)&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 14:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376242#M11443</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-15T14:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to MS SQL 2014 via ODB</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376243#M11444</link>
      <description>&lt;P&gt;I just created a new database (Test) and a new table (Table) with a colum (a).&lt;/P&gt;&lt;P&gt;If I try to register tables for that database, I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"No tables were retrieved from your query. Your connection information may be incorrect. Do you want to view the SAS Log?"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 Das SAS System 16:39 Saturday, July 15, 2017&lt;/P&gt;&lt;P&gt;NOTE: Copyright (c) 2002-2012 by SAS Institute Inc., Cary, NC, USA.&lt;BR /&gt;NOTE: SAS (r) Proprietary Software 9.4 (TS1M2)&lt;BR /&gt;Licensed to ACME Corp&amp;nbsp;EDITION M DATENMGMT VA, Site&amp;nbsp;0815.&lt;BR /&gt;NOTE: This session is executing on the X64_SRV12 platform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Additional host information:&lt;/P&gt;&lt;P&gt;X64_SRV12 WIN 6.2.9200 Server&lt;/P&gt;&lt;P&gt;NOTE: SAS-Initialisierung used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;NOTE: The autoexec file, D:\SAS\Config\Lev1\SASApp\WorkspaceServer\autoexec.sas, was executed at server initialization.&lt;BR /&gt;1 LIBNAME onbaset ODBC DATAsrc=ONBASE_NISQL2 SCHEMA=Test USER=sa&lt;BR /&gt;1 ! PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ;&lt;BR /&gt;NOTE: Libref ONBASET was successfully assigned as follows:&lt;BR /&gt;Engine: ODBC&lt;BR /&gt;Physical Name: ONBASE_NISQL2&lt;BR /&gt;2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 14:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376243#M11444</guid>
      <dc:creator>dirks</dc:creator>
      <dc:date>2017-07-15T14:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to MS SQL 2014 via ODB</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376281#M11445</link>
      <description>&lt;P&gt;To see the schema tables in SAS, your ODBC LIBNAME to SQL Server must specify the server name, database and schema. It isn't clear from your example whether you are doing that or not. Does your DATASRC include both a server name and a database? If it doesn't you can add QUALIFIER = MyDatabaseName to your LIBNAME.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 22:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376281#M11445</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-07-15T22:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to MS SQL 2014 via ODB</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376286#M11446</link>
      <description>&lt;P&gt;Schema and table namesmaybe case sensitive.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 23:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376286#M11446</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-15T23:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to MS SQL 2014 via ODB</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376556#M11460</link>
      <description>&lt;P&gt;I just learned that the Schema name is not the same as the database name.&lt;/P&gt;&lt;P&gt;It is working now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks everyone!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:06:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376556#M11460</guid>
      <dc:creator>dirks</dc:creator>
      <dc:date>2017-07-17T14:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to MS SQL 2014 via ODB</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376746#M11468</link>
      <description>&lt;P&gt;Good to hear. You may also want to check out using connection strings to completely define your database connections instead of defining ODBC sources. Here is a link that describes how to do it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Example-of-DSN-less-SQL-Server-connection-from-Linux/m-p/349265#M10387" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/Example-of-DSN-less-SQL-Server-connection-from-Linux/m-p/349265#M10387&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 20:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Connect-to-MS-SQL-2014-via-ODBC/m-p/376746#M11468</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-07-17T20:16:57Z</dc:date>
    </item>
  </channel>
</rss>

