<?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: Unable to query from MS SQL Server view to SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212766#M15965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname test oledb init_string='Provider=&amp;gt;&amp;lt;SQLOLEDB.1 or SQLOLEDB.10&amp;gt;;Password=&amp;lt;yourpassword&amp;gt;;Persist Security Info=True;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User ID=&amp;lt;yourusername&amp;gt;;Initial Catalog=&amp;lt;yourdatabasename&amp;gt;;Data Source=your_server_name' schema=&amp;lt;name of your schema usually dbo&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this gave me write answer. Hope somebody will be able to use this code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 15:01:53 GMT</pubDate>
    <dc:creator>learner_sas</dc:creator>
    <dc:date>2015-03-31T15:01:53Z</dc:date>
    <item>
      <title>Unable to query from MS SQL Server view to SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212759#M15958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my SAS connected to MS SQL Server using following Libname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME libone OLEDB USER=test password=test datasource='www.medicine.com' PROVIDER='sqloledb2.1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can successfully connect to database&amp;nbsp; with following log message&lt;/P&gt;&lt;P&gt;NOTE: Libref &lt;SPAN style="font-size: 13.3333330154419px;"&gt;libone &lt;/SPAN&gt;was successfully assigned as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Engine:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OLEDB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Physical Name: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;sqloledb2.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can not query from the MS SQL Server views in my SAS EG. If I open my MS SQL Server Management Studio then I can see all the views.&amp;nbsp; I am wondering what I am missing here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I submit below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set &lt;SPAN style="font-size: 13.3333330154419px;"&gt;libone&lt;/SPAN&gt;.test_view;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get following as my log with error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GOPTIONS ACCESSIBLE;&lt;/P&gt;&lt;P&gt;15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data test;&lt;/P&gt;&lt;P&gt;16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;libone&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;.test_view&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;ERROR: File &lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;libone&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;.test_view&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.DATA does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.TEST may be incomplete.&amp;nbsp; When this step was stopped there were 0 observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.TEST was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.03 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,Vi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 15:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212759#M15958</guid>
      <dc:creator>learner_sas</dc:creator>
      <dc:date>2015-03-30T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query from MS SQL Server view to SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212760#M15959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've seen three things cause this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Pointing at a schema different from the one you want;&lt;/P&gt;&lt;P&gt;2. Permissions don't allow you to see the table.&lt;/P&gt;&lt;P&gt;3. I think that these objects are case-sensitive. Make sure you use upper/lower case correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 16:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212760#M15959</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2015-03-30T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query from MS SQL Server view to SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212761#M15960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With SQL Server you usually need to specify DATABASE and SCHEMA as LIBNAME options if they are not defined in your DATASOURCE.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 09:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212761#M15960</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-03-31T09:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query from MS SQL Server view to SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212762#M15961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As SASKiwi pointed out . Sometimes you need a schema .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;LIBNAME libone OLEDB USER=test password=test datasrc=xxx&amp;nbsp;&amp;nbsp;&amp;nbsp; schema=dbo ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Talk to your Admin and find what is schema , default is dbo .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Xia Keshan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 12:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212762#M15961</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-03-31T12:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query from MS SQL Server view to SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212763#M15962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to insert dbo as my schema ( I have default as &lt;A __default_attr="645292" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; pointed out. Since I have OLEDB I used DATABASE(I think I can not use DSN)&amp;nbsp; but still I am not able to connect. Below is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME XXX OLEDB USER=usrone password=usrone database="dbname" &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;datasource='server_name' &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;PROVIDER='SQLOLEDB23.1'&amp;nbsp; SCHEMA=dbo ; gives error in the log but following code do not gives error after removing database options but still I can not see my tables and views.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;LIBNAME XXX OLEDB USER=usrone password=usrone&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;datasource='server_name' &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;PROVIDER='SQLOLEDB23.1'&amp;nbsp; SCHEMA=dbo ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212763#M15962</guid>
      <dc:creator>learner_sas</dc:creator>
      <dc:date>2015-03-31T13:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query from MS SQL Server view to SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212764#M15963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you make a ODBC connection and plus SCHEMA=dbo ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212764#M15963</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-03-31T13:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query from MS SQL Server view to SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212765#M15964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We do not have SAS ODBC license therefore we have to go through OLEDB route&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 14:06:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212765#M15964</guid>
      <dc:creator>learner_sas</dc:creator>
      <dc:date>2015-03-31T14:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to query from MS SQL Server view to SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212766#M15965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname test oledb init_string='Provider=&amp;gt;&amp;lt;SQLOLEDB.1 or SQLOLEDB.10&amp;gt;;Password=&amp;lt;yourpassword&amp;gt;;Persist Security Info=True;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User ID=&amp;lt;yourusername&amp;gt;;Initial Catalog=&amp;lt;yourdatabasename&amp;gt;;Data Source=your_server_name' schema=&amp;lt;name of your schema usually dbo&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this gave me write answer. Hope somebody will be able to use this code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 15:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-query-from-MS-SQL-Server-view-to-SAS-EG/m-p/212766#M15965</guid>
      <dc:creator>learner_sas</dc:creator>
      <dc:date>2015-03-31T15:01:53Z</dc:date>
    </item>
  </channel>
</rss>

