<?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 PROC HTTP and Cosmos DB in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-and-Cosmos-DB/m-p/498779#M72528</link>
    <description>&lt;P&gt;I am trying to connect to the Azure Cosmos database. I have a url:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mydb.azure.com" target="_blank"&gt;https://mydb.azure.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And an AccountKey: ABC123&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas on connecting? This is a NoSQL database.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 17:04:30 GMT</pubDate>
    <dc:creator>AlanC</dc:creator>
    <dc:date>2018-09-25T17:04:30Z</dc:date>
    <item>
      <title>PROC HTTP and Cosmos DB</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-and-Cosmos-DB/m-p/498779#M72528</link>
      <description>&lt;P&gt;I am trying to connect to the Azure Cosmos database. I have a url:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mydb.azure.com" target="_blank"&gt;https://mydb.azure.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And an AccountKey: ABC123&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas on connecting? This is a NoSQL database.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 17:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-and-Cosmos-DB/m-p/498779#M72528</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2018-09-25T17:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HTTP and Cosmos DB</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-and-Cosmos-DB/m-p/498791#M72530</link>
      <description>&lt;P&gt;The connection works through ODBC (&lt;EM&gt;O&lt;/EM&gt;pen &lt;EM&gt;Database&lt;/EM&gt;&amp;nbsp;&lt;EM&gt;C&lt;/EM&gt;onnectivity). Here is a post discussing that:&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Experience-with-SAS-and-Cosmos-DB/td-p/479398" target="_self"&gt;https://communities.sas.com/t5/SAS-Programming/Experience-with-SAS-and-Cosmos-DB/td-p/479398&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME mydblib ODBC DATAsrc=azuresrvr1 USER=testuser PASSWORD='ABC123';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;U&gt;Reference&lt;/U&gt;:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#p0bu3zsz1a08ton1msxdx1jo45np.htm" target="_self"&gt;LIBNAME Statement Specifics for ODBC&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 18:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-and-Cosmos-DB/m-p/498791#M72530</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-09-25T18:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HTTP and Cosmos DB</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-and-Cosmos-DB/m-p/535775#M73929</link>
      <description>&lt;P&gt;I have managed to get&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Cosmos DB drivers installed (from CDATA) on my SAS comp server&lt;/LI&gt;&lt;LI&gt;Got a system DSN ODBC connection set up on&amp;nbsp;my SAS comp server (that tests as working) using the URL and token&lt;/LI&gt;&lt;LI&gt;LIBNAME cosmos ODBC DATAsrc=CosmosDBODBCNAME ; (Syntactical works)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that is as far as I have got.&amp;nbsp; I do not know what the collections are called on the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has any one found as examples of how to discover what collections are on a Cosmos nosql database?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not from within SAS but using&amp;nbsp;&lt;A href="https://azure.microsoft.com/en-us/features/storage-explorer/" target="_blank"&gt;https://azure.microsoft.com/en-us/features/storage-explorer/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 01:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-and-Cosmos-DB/m-p/535775#M73929</guid>
      <dc:creator>NZ_Hockey_Mum</dc:creator>
      <dc:date>2019-02-15T01:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC HTTP and Cosmos DB</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-and-Cosmos-DB/m-p/539527#M74075</link>
      <description>&lt;P&gt;Update whilst the libname is syntactical correct it does not appear to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the pass through syntax I get error "schema map entry for "tablename" could not be found. Check query syntax and schema map definition and try again."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Got it working ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* first get the schema and table names using .... ;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to odbc(DATAsrc=ODBC_DNS_NAME);&lt;BR /&gt;create table work.odbcSchema as&lt;BR /&gt;select * from connection to odbc&lt;BR /&gt;(ODBC::SQLTables);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;* the output has the schema name labelled as Table_schem and the table_name in my database ;&lt;/P&gt;&lt;P&gt;* I got field name from using Microsoft Azure Storage Explore ;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to odbc(DATAsrc=ODBC_DNS_NAME);&lt;BR /&gt;create table work.SAS_dataset_name as&lt;BR /&gt;select * from connection to odbc&lt;BR /&gt;(select fieldName from Table_schem.table_name);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(note :S is actually a colon followed by a S)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 01:29:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-HTTP-and-Cosmos-DB/m-p/539527#M74075</guid>
      <dc:creator>NZ_Hockey_Mum</dc:creator>
      <dc:date>2019-03-01T01:29:58Z</dc:date>
    </item>
  </channel>
</rss>

