<?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 Steps to connect to SQL Server and load data into LASR table in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358073#M8581</link>
    <description>&lt;P&gt;Hello - I am looking for a document or help on how to setup a connection from SAS 9.4 on Windows Server to SQL Server database. I have gone to the SAS server and created an ODBC data source connection under System DSN tab to our sql server and connection is a success.&lt;/P&gt;&lt;P&gt;I am assuming I should create a Library under Data Library Manager (SAS Management Console) and then import my tables in that library. I would appreciated any help or document on this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 00:01:04 GMT</pubDate>
    <dc:creator>L2Fly</dc:creator>
    <dc:date>2017-05-12T00:01:04Z</dc:date>
    <item>
      <title>Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358073#M8581</link>
      <description>&lt;P&gt;Hello - I am looking for a document or help on how to setup a connection from SAS 9.4 on Windows Server to SQL Server database. I have gone to the SAS server and created an ODBC data source connection under System DSN tab to our sql server and connection is a success.&lt;/P&gt;&lt;P&gt;I am assuming I should create a Library under Data Library Manager (SAS Management Console) and then import my tables in that library. I would appreciated any help or document on this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 00:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358073#M8581</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2017-05-12T00:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358163#M8585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125625"&gt;@L2Fly&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;This Blog Post is best for this question:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.sas.com/content/sgf/2013/02/13/registering-dbms-data-in-sas-management-console/" target="_blank"&gt;http://blogs.sas.com/content/sgf/2013/02/13/registering-dbms-data-in-sas-management-console/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you wish your auth domain to be available in drop down under&amp;nbsp;Register the DBMS server, screen 5&lt;BR /&gt;you can create that before starting to register the new server under user manager. Follow this link for the same.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcsecug/64770/HTML/default/viewer.htm#n11xfvoau0jli0n1cl6rtfh5idfx.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcsecug/64770/HTML/default/viewer.htm#n11xfvoau0jli0n1cl6rtfh5idfx.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Anand!&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 07:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358163#M8585</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2017-05-12T07:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358184#M8586</link>
      <description>&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52993"&gt;@AnandVyas&lt;/a&gt;'s very helpful post you may wish to consider not using DSNs at all and instead define everything in a connection string. This post shows you how:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Example-of-DSN-less-SQL-Server-connection-from-Linux/m-p/349265#M10387" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/Example-of-DSN-less-SQL-Server-connection-from-Linux/m-p/349265#M10387&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To define a connection string in SMC, just choose the CONNECTION STRING option instead of the DSN option when defining the ODBC server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also a good alternative to registering your tables in metadata is to add the an extra attribute to your LIBRARY definition - AssignMode = 2. This will ensure your tables get listed in EG without registering.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 08:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358184#M8586</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-12T08:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358275#M8593</link>
      <description>&lt;P&gt;Thank you Anand-V and SASKiwi for your replies.&amp;nbsp;&amp;nbsp;SASKiwi&amp;nbsp;- &amp;nbsp;SAS did our installation and it looks like they used DSN for connection not sure why.&amp;nbsp; Also I looked at the link you provided and if I do it that way then I need to place the username and password into the string and I am not sure who will be able to see that!&amp;nbsp; I forgot to mention in my first but yes I want to register the tables in MetaData first but my issue is finding the steps to do it.&amp;nbsp; I have looked and searched but they are mostly talking about importing data from Excel...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here what I think I should be doing (if using the DSN).&lt;/P&gt;&lt;P&gt;1- I logged in into the server as a server admin user (who has access to the SQL Server) and created the ODBC connection in DSN.&lt;/P&gt;&lt;P&gt;2- Now what I need to do is to register tables into metadata (I am assuming when I do this it will create the library with the list of tables in it)&lt;/P&gt;&lt;P&gt;3- Load the data into LASR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stpes two and three and perhaps for all of the above steps I need some guide and help.&lt;/P&gt;&lt;P&gt;Again thanks so much to both of you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 16:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358275#M8593</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2017-05-12T16:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358337#M8596</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;take a look at the following doc:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/bidsag/69848/HTML/default/viewer.htm#n017taop8cx07in1r3awuwxlyb9m.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/bidsag/69848/HTML/default/viewer.htm#n017taop8cx07in1r3awuwxlyb9m.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will "land" on the Ora example. Look to the left and you'll find a list of all DBMS etc libs you can create in&lt;/P&gt;
&lt;P&gt;SASMC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anja&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 19:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358337#M8596</guid>
      <dc:creator>anja</dc:creator>
      <dc:date>2017-05-12T19:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358399#M8597</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125625"&gt;@L2Fly&lt;/a&gt;&amp;nbsp;- you don't have to put your userid and password in the connection string. If you are using Windows Authentication to connect to SQL Server you can use this string:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;noprompt = "server=MyServerName;DRIVER=SQL Server;Trusted Connection=yes;"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The - Trusted Connection=yes - part of the string says use my Windows user account and password to authenticate with SQL Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also suggest trying out the server connection in a SAS LIBNAME statement first as it is a lot easier to test:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname test ODBC noprompt = "server=MyServerName;DRIVER=SQL Server;Trusted Connection=yes;"&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/25908"&gt;@anja&lt;/a&gt;'s link also will lead you to examples of using connection strings:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/bidsag/69848/HTML/default/viewer.htm#p1t9q2knb9tq5ln101dkrdsa9ymf.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/bidsag/69848/HTML/default/viewer.htm#p1t9q2knb9tq5ln101dkrdsa9ymf.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 01:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358399#M8597</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-13T01:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358412#M8600</link>
      <description>&lt;P&gt;Hi Anand_V, the link to the blog was great.&amp;nbsp; I was able to go through it and it helped very much.&amp;nbsp; Now when I right click and select Display LIBNAME Statement I get the following but the problem is that it is using my userID for user.&amp;nbsp; What I want to do is use a service account I have created to be used for user=myserviceacct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME LibMyLibName ODBC&amp;nbsp; DATAsrc=SASSQL&amp;nbsp; SCHEMA=DBO&amp;nbsp; USER=MyID&amp;nbsp; PASSWORD="{???}123456789012345678890" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I logged into the SAS Management console as sasadm and when I run the above statement it passes my userID but I want to use the fix service account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best and thanks&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 03:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/358412#M8600</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2017-05-13T03:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/359447#M8644</link>
      <description>&lt;P&gt;Hello everyone and thanks for your help and posts. &amp;nbsp;After reading most of the links I was able to do the following. &amp;nbsp;I would love and very much appreciated to know your thoughts and help on this:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Steps I took:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Created a domain service account called SASSQLCONNECT. This service account has access to SQL Server.&lt;/LI&gt;&lt;LI&gt;Logged in into the SAS OA server with this user (only once to setup the ODBC driver) and did setup ODBC connection to SQL Server.&lt;/LI&gt;&lt;LI&gt;I followed this blog &lt;A href="http://blogs.sas.com/content/sgf/2013/02/13/registering-dbms-data-in-sas-management-console/" target="_blank"&gt;http://blogs.sas.com/content/sgf/2013/02/13/registering-dbms-data-in-sas-management-console/&lt;/A&gt; and as the result created an entry under [Server Manager] called [SQL Server: SQLDevDB] and also a Library under [Data Library Manager] called [SQL Server: SQLDevDB Library].&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my question:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I go and select and right click on [SQL Server: SQLDevDB Library] in Libraries and select Register Tables &amp;gt; Next &amp;gt; there is a log on windows pops up for SASAppOA, What user ID I need to log-in with? (at this time I just login with my own userID) and after I do this I get another log-on windows for [SQL Server: SQLDevDB Library] and again I use my own login (I am sure this is not correct)&lt;/LI&gt;&lt;LI&gt;Then I see the list of my tables from database, I select one and Location is set to /Shared Data &amp;gt; Next&amp;gt; Finish&lt;/LI&gt;&lt;LI&gt;I am assuming now I have registered the table in MetaData server.&lt;/LI&gt;&lt;LI&gt;Now I want to load the data into LASR table, how should I do that?&lt;/LI&gt;&lt;LI&gt;I can go and open SAS Enterprise Guide and under Servers SASAppOA and Explore the data.&lt;/LI&gt;&lt;LI&gt;I use SAS Enterprise Guide to Upload to LASR by finding the registered table but I get an error on a popup window for Upload to LASR saying “Unable to locate any LASR libraries. This task requires a LASR library”&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again thank you for your feedback&lt;/P&gt;&lt;P&gt;Regads&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 18:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/359447#M8644</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2017-05-17T18:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/359486#M8645</link>
      <description>&lt;P&gt;If you would like to bypass registering tables but still have them available, add this to your library definition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8934i46D0621061BF21AA/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="screenshot13.jpg" title="screenshot13.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 20:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/359486#M8645</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-17T20:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Steps to connect to SQL Server and load data into LASR table</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/359513#M8647</link>
      <description>&lt;P&gt;Thank you but this did not help me. &amp;nbsp;I will contact SAS Support. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again for all of your help.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 17:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Steps-to-connect-to-SQL-Server-and-load-data-into-LASR-table/m-p/359513#M8647</guid>
      <dc:creator>L2Fly</dc:creator>
      <dc:date>2017-05-18T17:02:05Z</dc:date>
    </item>
  </channel>
</rss>

