<?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: SQL-Server dates opening as text fields in Enterprise Guide in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/390795#M11819</link>
    <description>&lt;P&gt;Which ODBC SQL Server driver are you using? We are currently using&amp;nbsp;SQL Server Native Client 11.0 which handles dates better.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2017 00:13:52 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-08-25T00:13:52Z</dc:date>
    <item>
      <title>SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/390623#M11817</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Issue:&amp;nbsp;&lt;/STRONG&gt;Opening an SQL table in Enterprise Guide displays SQL datetimes as SAS datetimes, but displays SQL dates as a SAS character field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Products:&lt;/STRONG&gt;&amp;nbsp;SAS 9.4M3 (Win64),&amp;nbsp;EG 7.1,&amp;nbsp;SQL Server 2012 (via SAS/Acccess to ODBC)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;There was a &lt;A href="http://support.sas.com/kb/40/080.html" target="_blank"&gt;SAS note&lt;/A&gt; in 2010, dealing with SAS v9.1 &amp;amp; SQL Server 2008 - I'm hoping there's been&amp;nbsp;an update since?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've found workarounds here &amp;amp; elsewhere, but I&amp;nbsp;don't want to have to play around with CAST() or INPUT() functions in code; I'd actually prefer to find the right tweak to the libname statement so that opening a SQL-Server table in EG displays SQL datetimes as SAS datetimes, and SQL dates as SQL dates.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/390623#M11817</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2017-08-24T14:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/390663#M11818</link>
      <description>&lt;P&gt;Is DBSASTYPE an option here?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/390663#M11818</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-24T15:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/390795#M11819</link>
      <description>&lt;P&gt;Which ODBC SQL Server driver are you using? We are currently using&amp;nbsp;SQL Server Native Client 11.0 which handles dates better.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 00:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/390795#M11819</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-08-25T00:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/390895#M11821</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;- not in this case. I'm trying to avoid data set options in favour of global options (or config settings).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To clarify the client's requirements: To be able to open a SQL-Server table in Enterprise Guide v7.1 and have SQL datetimes appear as datetimes and SQL dates appear as dates.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS 9.4M3 on a Win64 server.&lt;/LI&gt;
&lt;LI&gt;libname to a SQL-Server 2012 database via ODBC driver.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;- I'll have to check with the SysAdmins but thanks for the tip.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the solution likely to be:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;a SAS libname option&lt;/LI&gt;
&lt;LI&gt;a SQL-Server client version&lt;/LI&gt;
&lt;LI&gt;a SQL-Server driver update&lt;/LI&gt;
&lt;LI&gt;a combination of the above?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 13:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/390895#M11821</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2017-08-25T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391401#M11848</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;- I'm struggling to find a "SAS configuration" resolution to this issue (without creating table-specific views, transformations, etc).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to make a judgement call on this by the end of the week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How confident are you that updating the SQL Server driver will resolve this? Presumably there'd be nothing to lose by doing so?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391401#M11848</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2017-08-29T07:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391675#M11868</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13754"&gt;@AndrewHowell&lt;/a&gt;&amp;nbsp;- Correct. Good practice would be to have several ODBC drivers so behaviour differences can be checked. It is easy just to add another ODBC driver then test it using the connection string approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname testodbc ODBC noprompt = "server=MySQLServer;DRIVER=SQL Server Native Client 11.0;Trusted_Connection=yes;"  qualifier = "MyDatabase" schema = "MySchema";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 21:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391675#M11868</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-08-29T21:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391683#M11869</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;- I've done that on Linux platforms, but I found Windows platforms generally aren't good at supporting multiple versions of drivers, later ones tend to replace earlier ones. Currently we have a v6 SQL driver, which we'll upgrade &amp;amp; test tomorrow. I'm presuming the upgrade won't adversely affect existing SQL ODBC connections.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will update later on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 22:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391683#M11869</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2017-08-29T22:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391684#M11870</link>
      <description>&lt;P&gt;Isn't there an MS SQL specific connection via SAS as well, or specific drive for MS SQL? That may also have different behaviour.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 22:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391684#M11870</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-29T22:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391685#M11871</link>
      <description>&lt;P&gt;Yes, but this client only has SAS/Accsss to ODBC.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 22:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391685#M11871</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2017-08-29T22:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391687#M11872</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13754"&gt;@AndrewHowell&lt;/a&gt;&amp;nbsp;- If you test using a connection string then you can explicitly point at a particular driver as my example demonstrates. Regarding Windows supporting multiple versions of drivers, we have at least two ODBC drivers installed on all of our Windows SAS servers and have no problems pointing at the required one using connection strings. I'm interested to see how you get on so I much appreciate your feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like Microsoft has updated its SQL Server ODBC drivers recently so you might like to get the latest versions of both Version 11 and Version 13.1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.microsoft.com/en-nz/download/details.aspx?id=36434" target="_blank"&gt;http://www.microsoft.com/en-nz/download/details.aspx?id=36434&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=53339" target="_blank"&gt;https://www.microsoft.com/en-us/download/details.aspx?id=53339&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 23:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/391687#M11872</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-08-29T23:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-Server dates opening as text fields in Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/392394#M11924</link>
      <description>&lt;P&gt;Upgrade of SQL-Server client on the SAS server did the trick perfectly. Thanks to all for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 23:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SQL-Server-dates-opening-as-text-fields-in-Enterprise-Guide/m-p/392394#M11924</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2017-08-31T23:18:01Z</dc:date>
    </item>
  </channel>
</rss>

