<?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: Connecting SAS/ACCESS to SQL Server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157630#M263034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a name you need to type when you make a ODBC connection with SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2014 13:23:48 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-11-05T13:23:48Z</dc:date>
    <item>
      <title>Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157629#M263033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to establish a connection to SQL Server using SAS/ACCESS with ODBC but I don't know which DSN should be use to start the process, UserDSN, SystemDSN or FileDSN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the difference between accessing SQL Server using ODBC OR ODE BD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am referring the attached document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand Sahu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 12:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157629#M263033</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2014-11-05T12:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157630#M263034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a name you need to type when you make a ODBC connection with SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 13:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157630#M263034</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-05T13:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157631#M263035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xia keshan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to know the usage and approach of selecting&amp;nbsp; either &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;UserDSN, SystemDSN or FileDSN. Its clearly mentioned on the attached document that we need to put a server name.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 13:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157631#M263035</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2014-11-05T13:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157632#M263036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would start with SystemDSN as that just means its available to anyone using your computer.&amp;nbsp; UserDSN is only available to the user that created it.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 14:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157632#M263036</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-11-05T14:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157633#M263037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Besides the answer you already have, here are couple of other things you may want to consider:&lt;/P&gt;&lt;P&gt;1. File DSN, just like System DSN, is also not user restricted. Once created, it can be shared by many different users, as it is just a file containing connection information.&lt;/P&gt;&lt;P&gt;2. OLEDB vs. ODBC. First, you need to make sure you have license for either of them to start with. ODBC is an open relational database connection API that most of the database manufactures will support. OLEDB is a Microsoft API that works with Oracle in addition to its own database, Access and SQL server. I haven't seen any benchmarks on the efficiency comparison between these two, but they maybe outthere somewhere.&lt;/P&gt;&lt;P&gt;3. You don't have to define any DSN to be able to connect, as long as you have the driver installed. For example, this works for a SQL server database:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; test odbc schema=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;"dbo"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; bulkload=YES noprompt=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;"server=yourservername,31723;DRIVER=SQL Server;Trusted_Connection=yes;database=yourdatabasename"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;Good luck,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;Haikuo &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 14:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157633#M263037</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-11-05T14:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157634#M263038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you Hikuo...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just need to know one more thing that how can I examine whether a system has SAS/ACCESS as I would be making connecting remotely on client's system. They use window SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157634#M263038</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2014-11-05T18:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157635#M263039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS/ACCESS is for you to ACCESS relational database or other data format other than SAS tables; SAS/CONNECT is for you to remotely link two SAS instance. Both can be checked using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc setinit;run; /*for licensing*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc product_status;run;/*for installation*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 18:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157635#M263039</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-11-05T18:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157636#M263040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thing....why do we Authenticate SQL Server and what is NT Authentication.&lt;/P&gt;&lt;P&gt;I know..these questions sound like stupid question but its first time I am going to make a connection tomorrow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:02:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157636#M263040</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2014-11-05T19:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157637#M263041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need credentials to access a database.&amp;nbsp; Your credentials (password, userid) can be assigned at OS level (eg. NT authentication) or the database level ( eg. SQL server authentication). Usually OS level authentication (eg. IWA) would be a better option.&lt;/P&gt;&lt;P&gt;Are you excited &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 19:17:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157637#M263041</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-11-05T19:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157638#M263042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't matter if it is &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;UserDSN or&amp;nbsp; SystemDSN .. as long as you can connect to SQL Database.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 12:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157638#M263042</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-06T12:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157639#M263043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haikuo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did it.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;P&gt;Thank you so much your inputs really help a lot.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I faced a problem while running Prompted Connection as per the document after establishment the ODBC DSN connection.:smileyconfused:&lt;/P&gt;&lt;P&gt;%put %superq(sysdbmsg);&lt;/P&gt;&lt;P&gt;above statement threw an error, I couldn't note the error, which caused problems as It gives an "ODBC:" statement with WSID and I am not aware of it.&lt;/P&gt;&lt;P&gt;LIBNAME SQL ODBC prompt;&lt;/P&gt;&lt;P&gt;NOTE: Libref SQL was successfully assigned as follows:&lt;/P&gt;&lt;P&gt;Engine: ODBC&lt;/P&gt;&lt;P&gt;Physical Name: sqlsrv&lt;/P&gt;&lt;P&gt;7 %put %superq(sysdbmsg); &lt;/P&gt;&lt;P&gt;ODBC: DSN=sqlsrv;UID=jebjur;PWD=jebjur1;WSID=d17117&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So typed LIBNAME statement manually as its mentioned in the document i.e. WSID=d17117,&lt;/P&gt;&lt;P&gt;LIBNAME SQL ODBC noprompt= "dsn=sqlsrv; uid=himdw; pwd=******; wsid=d17117";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially the SQL library created but there were no datasets but after some it started showing tables in the same library. I really couldn't figure out what was the reason. So could you please share views on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Anand Sahu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 12:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157639#M263043</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2014-11-06T12:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157640#M263044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While I am not entirely familiar with this 'prompt' approach, but it seems to me just a way of entering credentials when prompted. WSID is Windows System ID, so it should be your computer name registered in active domain. %superq(sysdbmsg) is to replay whatever you have just entered for your connection. The reason why there was no table and then there were, I am not sure. But one thing obvious to me is that I didn't see SCHEMA= option anywhere in your connection string. This will point your library to your own schema or some other default schema configured in your SQL server database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 15:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157640#M263044</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-11-06T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting SAS/ACCESS to SQL Server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157641#M263045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used LIBNAME SQL ODBC DSN=sqlsrv user=sasjlb pw=pwd schema=dbo;&lt;/P&gt;&lt;P&gt;after above statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 03:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Connecting-SAS-ACCESS-to-SQL-Server/m-p/157641#M263045</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2014-11-07T03:59:22Z</dc:date>
    </item>
  </channel>
</rss>

