<?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 dsn and schema in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131931#M35864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;when I connect to SQL server with SAS ,I use the code as below. &lt;/P&gt;&lt;P&gt;Could anybody please help me explain what is the defference between sdn and schema? &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname mydatas odbc&lt;/P&gt;&lt;P&gt;dsn=name1&lt;/P&gt;&lt;P&gt;schema=dbo;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2012 13:09:35 GMT</pubDate>
    <dc:creator>Mike_Davis</dc:creator>
    <dc:date>2012-06-04T13:09:35Z</dc:date>
    <item>
      <title>dsn and schema</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131931#M35864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;when I connect to SQL server with SAS ,I use the code as below. &lt;/P&gt;&lt;P&gt;Could anybody please help me explain what is the defference between sdn and schema? &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname mydatas odbc&lt;/P&gt;&lt;P&gt;dsn=name1&lt;/P&gt;&lt;P&gt;schema=dbo;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 13:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131931#M35864</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-06-04T13:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: dsn and schema</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131932#M35865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems like dsn(data source name) denotes database's name&lt;/P&gt;&lt;P&gt;schema specify a subfolder under this database(there would be many tables(datasets) under the schema specified folder, these tables(datasets) will be listed in under the libname folder of SAS )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 13:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131932#M35865</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-06-04T13:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: dsn and schema</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131933#M35866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a good way to think of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL you refer to tables using a two level system schema.table_name and then variables with a three level system, schema.table_name.variable_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS uses different notation so you need to specify your schema in the database connection to allow SAS to appropriately transfer the names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen the schema used to differentiate different programs that are stored/warehoused in the same db. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 15:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131933#M35866</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-06-04T15:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: dsn and schema</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131934#M35867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#titlepage.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#titlepage.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#titlepage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the link out and it has database specific properties of the connection string. This should help you out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SAPPER.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 17:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131934#M35867</guid>
      <dc:creator>SAPPER</dc:creator>
      <dc:date>2012-06-04T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: dsn and schema</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131935#M35868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sapper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the libname statement was finished,I found some of these tables in the SQL server didn't show up in the SAS folder. what cause this happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 20:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131935#M35868</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-06-04T20:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: dsn and schema</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131936#M35869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the table names longer than 32 characters?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 21:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131936#M35869</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-06-04T21:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: dsn and schema</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131937#M35870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the table names are longer than 32 characters one way they can be accessed is by using SQL Pass Through.&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; connect to odbc(dsn=name1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table x as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; from connection to odbc(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dbo.&amp;lt;sqlservertablenamelongerthan32characters&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp; disconnect from odbc;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zafer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 05:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131937#M35870</guid>
      <dc:creator>Alpay</dc:creator>
      <dc:date>2012-06-05T05:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: dsn and schema</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131938#M35871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your table name contain some special character , such as white blank $ # ?&lt;/P&gt;&lt;P&gt;And use libname option reserve_table_names=yes can update and display it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 05:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dsn-and-schema/m-p/131938#M35871</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-06-05T05:53:03Z</dc:date>
    </item>
  </channel>
</rss>

