<?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 MSSQL LIBNAME in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117569#M32405</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;Thanks in advance, I have been trying to connect to a database on MSSQL server and i am facing trouble with the libname statement that i have to use. I have the user name and password to access the server but i am not able to run the libname statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using the following libname statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname mssql&amp;nbsp; user =&amp;nbsp; password =&amp;nbsp;&amp;nbsp; database =&amp;nbsp;&amp;nbsp;&amp;nbsp; server =&amp;nbsp;&amp;nbsp;&amp;nbsp; schema =&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am receiving that the libname statement is not assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 19:20:17 GMT</pubDate>
    <dc:creator>hari1109</dc:creator>
    <dc:date>2012-05-16T19:20:17Z</dc:date>
    <item>
      <title>MSSQL LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117569#M32405</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;Thanks in advance, I have been trying to connect to a database on MSSQL server and i am facing trouble with the libname statement that i have to use. I have the user name and password to access the server but i am not able to run the libname statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using the following libname statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname mssql&amp;nbsp; user =&amp;nbsp; password =&amp;nbsp;&amp;nbsp; database =&amp;nbsp;&amp;nbsp;&amp;nbsp; server =&amp;nbsp;&amp;nbsp;&amp;nbsp; schema =&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am receiving that the libname statement is not assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Harish.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 19:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117569#M32405</guid>
      <dc:creator>hari1109</dc:creator>
      <dc:date>2012-05-16T19:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117570#M32406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If MSSQL means MySQL:&lt;/P&gt;&lt;P&gt;libname mylib mysql user=user password=password database=mysqldb server=mysqlservr port=9876;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If MSSQL means Microsoft SQL Server then you need to use the sqlsrv engine:&lt;/P&gt;&lt;P&gt;libname mylib sqlsvr nopromt="uid=user; pwd=pass; dsn=sqlservr;";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Applicable documentation:&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#acreldbwhatsnew902.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#acreldbwhatsnew902.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#acreldbwhatsnew902.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go under the DBMS-Specific Reference Section and then select the SAS/ACCESS Interface you are trying to use, then LIBNAME Statement Specifics for that interface.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 19:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117570#M32406</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-05-16T19:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117571#M32407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fried Egg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply and i have tried with the second libname statement and i am still not able to assign the libname statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my server name MSSQL09, database name ,schema name, user name and password , i am trying to connect using the libname statement in SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for that INFO, i will look into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Harish.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 23:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117571#M32407</guid>
      <dc:creator>hari1109</dc:creator>
      <dc:date>2012-05-16T23:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117572#M32408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you licensed for the SAS/ACCESS interface for the database type you are trying to connect to?&lt;/P&gt;&lt;P&gt;Do you know what type of database you are connecting to?&lt;/P&gt;&lt;P&gt;Can you access the database by other means on the same machine you are trying to connect to it with SAS?&lt;/P&gt;&lt;P&gt;It sounds to me like you should contact your companies SAS Admin staff or technical support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try running the libname statement again with the following before the libname statement.&amp;nbsp; Copy and paste your log here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options msglevel=i sastrace=',,t,ds' sastraceloc=saslog;&lt;/P&gt;&lt;P&gt;libname etc mysql user= pass= database= server= port=;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 23:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117572#M32408</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-05-16T23:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117573#M32409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it MSSQL or MYSQL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax for MYSQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME xxx MYSQL&amp;nbsp; ESCAPE_BACKSLASH=YES&amp;nbsp; DATABASE=testn SERVER="xx.xx.xx.xxx"&amp;nbsp; MYSQL_PORT=3306&amp;nbsp; USER=dwh&amp;nbsp; PASSWORD="test" ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 03:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117573#M32409</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-05-17T03:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: MSSQL LIBNAME</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117574#M32410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your LOG message ?&lt;/P&gt;&lt;P&gt;First of all, you should success to connect to MySQL by MySQL's client program.&lt;/P&gt;&lt;P&gt;SAS actually use MySQL's client software to talk to MySQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 05:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MSSQL-LIBNAME/m-p/117574#M32410</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-05-17T05:18:35Z</dc:date>
    </item>
  </channel>
</rss>

