<?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: Date format changing in SQL database from datetime to date.  How to use in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/313783#M270444</link>
    <description>&lt;P&gt;Thanks, Patrick!&amp;nbsp; I should have searched the SAS Usage Notes first, before posting here. Yes, I am using the "SAS/ACCESS Interface to OLE DB" driver to access SQL Server data from SAS code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reading the link you provided, it&amp;nbsp;sounds like that should fix my problem. I'll try it out next week, when everyone is back in the office after Thanksgiving break.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt; It worked! Based on&amp;nbsp;a similar Usage Note for SAS/ACCESS Interface to OLE DB&amp;nbsp; - &lt;A href="http://support.sas.com/kb/39/188.html" target="_blank"&gt;http://support.sas.com/kb/39/188.html&lt;/A&gt; -- we just changed our PROVIDER= parameter to &lt;STRONG&gt;Provider=SQLNCLI10.1&lt;/STRONG&gt; in our LIBNAME xxx OLEDB ...;&amp;nbsp;statement, and the date fields&amp;nbsp;are now downloading correctly from SQL Server 2008 into SAS numeric date variables.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2016 16:26:26 GMT</pubDate>
    <dc:creator>bnawrocki</dc:creator>
    <dc:date>2016-11-29T16:26:26Z</dc:date>
    <item>
      <title>Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303151#M270432</link>
      <description>&lt;P&gt;In addition to the query I raised recently, someone has decided to amend all the date fields in several SQL databases from DateTime to Date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Historically, we've read in the datetime fields and using datepart created a SAS date variable as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New" size="2"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; startdate &lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;ddmmyy10.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;startdate = datepart(start);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; startdate &amp;gt;= &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;'01apr2016'd&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;This no longer works. i'm using SAS 9.4 and have tried various methods to use the new date fields without success. I've read in a couple of places that SAS can't use Date format fields without using&amp;nbsp; ProcSQL&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Is this true or can I modify the code above (it's used in a lot of programmes for many fields) with minimal change? I want to avoid break it up into individual characters and then concatenating to create a new field.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Brian&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 13:07:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303151#M270432</guid>
      <dc:creator>Brian_lewis67</dc:creator>
      <dc:date>2016-10-07T13:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303152#M270433</link>
      <description>&lt;P&gt;First of all, make sure that the new date field is actually imported into SAS as date. Then omit the datepart conversion.&lt;/P&gt;
&lt;P&gt;The column in SAS should be numeric and formatted with one of the date formats. And have values that make sense, of course.&lt;/P&gt;
&lt;P&gt;If that is not the case, review the import process.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 13:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303152#M270433</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-07T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303153#M270434</link>
      <description>&lt;P&gt;As in many ODBC (or are you using OLEDB?) trouble shooting situations, accessing the same data from another application&amp;nbsp;is one way to understand the issue.&lt;/P&gt;
&lt;P&gt;According to the doc, the&amp;nbsp;SQL_TYPE_DATE will be interpreted as date in SAS.&lt;/P&gt;
&lt;P&gt;If your date columns is categorized in ODBC as SQL_TYPE_TIMESTAMP, try use the DBTYPE= data set option.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 13:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303153#M270434</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-07T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303170#M270435</link>
      <description>&lt;P&gt;Thanks for pointing me in the right direction. It atually reads the date in as text $10. so I've used the input function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;startdate = input(start,&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;yymmdd10.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and this appears to have worked. Should this cause any issues when then comparing two dates?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 14:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303170#M270435</guid>
      <dc:creator>Brian_lewis67</dc:creator>
      <dc:date>2016-10-07T14:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303171#M270436</link>
      <description>Apologies Linus but most of that makes any sense given my very, very limited knowledge. Thanks anyway.</description>
      <pubDate>Fri, 07 Oct 2016 14:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303171#M270436</guid>
      <dc:creator>Brian_lewis67</dc:creator>
      <dc:date>2016-10-07T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303188#M270437</link>
      <description>&lt;P&gt;When interacting with a Database you should try and get to a level where you understand what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt;&amp;nbsp;is talking about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following link provides you the information to what data type and format the SAS Access engine converts SQL Server data types when pulling the data into SAS.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/69039/HTML/default/viewer.htm#n0h4i25zq3t58en1lgr8jjx1rads.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/69039/HTML/default/viewer.htm#n0h4i25zq3t58en1lgr8jjx1rads.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That you end up with a SAS character variable of length 10 strongly indicates that the "date" in SQL Server is now actually stored as a string &amp;nbsp;and most likely using a&amp;nbsp;SQL Server variable of data type&amp;nbsp;&lt;SPAN&gt;SQL_VARCHAR or SQL_CHAR.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 15:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303188#M270437</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-10-07T15:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303247#M270438</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the link. That certainly explains how data types are treated when reading them in from an SQL database.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I'm not an expert at SQL or SAS but have been tasked with updating programme my team use as a result of server and Database changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was a case of we are making these changes without consultation with users and offer no support either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 18:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303247#M270438</guid>
      <dc:creator>Brian_lewis67</dc:creator>
      <dc:date>2016-10-07T18:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303355#M270439</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18135"&gt;@Brian_lewis67&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for pointing me in the right direction. It atually reads the date in as text $10. so I've used the input function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;startdate = input(start,&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;yymmdd10.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and this appears to have worked. Should this cause any issues when then comparing two dates?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just to be sure, apply a date format to startdate.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format startdate date9.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This displays the date in human-readable format and allows you to verify that the values are correct. All comparisons will then work as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I read database data not from the database itself, but from flat files unloaded from a database snapshot, I always get date values as CHAR(10) and have to read into a temprorary variable and then convert by using the input() function.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 08:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303355#M270439</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-08T08:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303362#M270440</link>
      <description>No problem, and sorry for being ignorant about your knowledge level. I'm glad that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; chimed in and saved the day &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;</description>
      <pubDate>Sat, 08 Oct 2016 09:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303362#M270440</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-08T09:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303399#M270441</link>
      <description>&lt;P&gt;There is no need to apologise. Thanks for your input.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2016 00:01:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/303399#M270441</guid>
      <dc:creator>Brian_lewis67</dc:creator>
      <dc:date>2016-10-09T00:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/313487#M270442</link>
      <description>&lt;P&gt;I think I have&amp;nbsp;the same problem. We run SAS code&amp;nbsp;to import our&amp;nbsp;month-end SQL Server database tables into SAS datasets. There are dozens of tables, with code such as this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL dquote=ansi ;
           create table dd_admin_trail as
              (select * from  ncedss.dd_admin_trail);
              quit;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In September, all date fields in SQL Server were stored as datetime fields, and imported into SAS correctly as datetime fields. In October, a change was made to SQL Server - we upgraded to SQL Server 2008 and all date fields are now stored as "DATE" fields (I checked in SQL Server, and the fields have a&amp;nbsp;"DATE" type), but they import into SAS as CHAR fields of format/length $10, which are not easy to work with in SAS code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get SAS to import these DATE fields in SQL Server into numeric date fields in SAS? Shouldn't that just happen by default?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a way to force SAS to do this, by hard-coding a couple of date fields like in this code, but there are dozens of date fields across dozens of SQL Server tables, and I don't want to write this DBSASTYPE clause for EVERY one of them!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
   create table DD_ADMIN_TRAIL as
     select * from  ncedss.DD_ADMIN_TRAIL (dbsastype=(ASSIGNED_TO_DT='DATE' CDC_BASE_DT='DATE') );
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Nov 2016 14:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/313487#M270442</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2016-11-22T14:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/313613#M270443</link>
      <description>&lt;P&gt;Please create a new question for a new problem and just post a reference to similar questions/solutions you found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's likely that you're using the wrong ODBC driver, which is something your SAS Admin/SAS Installer would have to change.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/080.html" target="_blank"&gt;http://support.sas.com/kb/40/080.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 22:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/313613#M270443</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-11-22T22:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date format changing in SQL database from datetime to date.  How to use in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/313783#M270444</link>
      <description>&lt;P&gt;Thanks, Patrick!&amp;nbsp; I should have searched the SAS Usage Notes first, before posting here. Yes, I am using the "SAS/ACCESS Interface to OLE DB" driver to access SQL Server data from SAS code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reading the link you provided, it&amp;nbsp;sounds like that should fix my problem. I'll try it out next week, when everyone is back in the office after Thanksgiving break.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt; It worked! Based on&amp;nbsp;a similar Usage Note for SAS/ACCESS Interface to OLE DB&amp;nbsp; - &lt;A href="http://support.sas.com/kb/39/188.html" target="_blank"&gt;http://support.sas.com/kb/39/188.html&lt;/A&gt; -- we just changed our PROVIDER= parameter to &lt;STRONG&gt;Provider=SQLNCLI10.1&lt;/STRONG&gt; in our LIBNAME xxx OLEDB ...;&amp;nbsp;statement, and the date fields&amp;nbsp;are now downloading correctly from SQL Server 2008 into SAS numeric date variables.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-format-changing-in-SQL-database-from-datetime-to-date-How/m-p/313783#M270444</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2016-11-29T16:26:26Z</dc:date>
    </item>
  </channel>
</rss>

