<?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: Assigning Libname to ODBC for multiple databases in sql server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-Libname-to-ODBC-for-multiple-databases-in-sql-server/m-p/60859#M6160</link>
    <description>Hi SASQ,&lt;BR /&gt;
&lt;BR /&gt;
The libname engine is setup as one library per schema/datasource. &lt;BR /&gt;
You can setup several libraries for each database and then create one concatenated library that contains all the libraries. &lt;BR /&gt;
If there are duplicate tables you will access the one listed first in the library. &lt;BR /&gt;
Also, if you write to your DBMS it will write in first schema. &lt;BR /&gt;
So, this method can yield results that you don't intend. &lt;BR /&gt;
&lt;BR /&gt;
It could look likes this ;&lt;BR /&gt;
  libname test1 [...]; &lt;BR /&gt;
  libname test2 [...]; &lt;BR /&gt;
&lt;BR /&gt;
  libname all (test1 test2); &lt;BR /&gt;
&lt;BR /&gt;
Hope that helps&lt;BR /&gt;
Cheers,</description>
    <pubDate>Mon, 31 Aug 2009 02:33:41 GMT</pubDate>
    <dc:creator>Damo</dc:creator>
    <dc:date>2009-08-31T02:33:41Z</dc:date>
    <item>
      <title>Assigning Libname to ODBC for multiple databases in sql server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-Libname-to-ODBC-for-multiple-databases-in-sql-server/m-p/60858#M6159</link>
      <description>I have two database db1 and db2 in sql server. I want to assign a single libname odbc to use tables residing in different database. I used qualifier option but it did not worked. Such that with single SYS1 i can get tables or views in database db1 and db2. How is that possible?&lt;BR /&gt;
&lt;BR /&gt;
LIBNAME SYS1 ODBC DSN = "data_src" USER = userid PASSWORD = password SCHEMA = dbo QUALIFIER=databasename PRESERVE_TAB_NAMES = YES;</description>
      <pubDate>Fri, 31 Jul 2009 15:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-Libname-to-ODBC-for-multiple-databases-in-sql-server/m-p/60858#M6159</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-31T15:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Libname to ODBC for multiple databases in sql server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-Libname-to-ODBC-for-multiple-databases-in-sql-server/m-p/60859#M6160</link>
      <description>Hi SASQ,&lt;BR /&gt;
&lt;BR /&gt;
The libname engine is setup as one library per schema/datasource. &lt;BR /&gt;
You can setup several libraries for each database and then create one concatenated library that contains all the libraries. &lt;BR /&gt;
If there are duplicate tables you will access the one listed first in the library. &lt;BR /&gt;
Also, if you write to your DBMS it will write in first schema. &lt;BR /&gt;
So, this method can yield results that you don't intend. &lt;BR /&gt;
&lt;BR /&gt;
It could look likes this ;&lt;BR /&gt;
  libname test1 [...]; &lt;BR /&gt;
  libname test2 [...]; &lt;BR /&gt;
&lt;BR /&gt;
  libname all (test1 test2); &lt;BR /&gt;
&lt;BR /&gt;
Hope that helps&lt;BR /&gt;
Cheers,</description>
      <pubDate>Mon, 31 Aug 2009 02:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Assigning-Libname-to-ODBC-for-multiple-databases-in-sql-server/m-p/60859#M6160</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2009-08-31T02:33:41Z</dc:date>
    </item>
  </channel>
</rss>

