<?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: Uploading data to SQL server - issue with Date variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172155#M44394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really a solution as it is telling the date type of sql-server is a string with some constraint on it.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;On the other hand first creating that dataset in native settings and than putting the data in is often seen as a good practice.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2014 19:53:09 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-11-17T19:53:09Z</dc:date>
    <item>
      <title>Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172146#M44385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write a dataset to SQL server from SAS, but the data has a Date variable, that doesn't convert correctly.&lt;/P&gt;&lt;P&gt;I am simply using a Libname reference to the SQL server and running a Data step to output into SQL.&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;Data SQL.Table_name ; Set WORK.Table_Name ; run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check the table on the SQL server, the date variable is converted to a datetime variable and obviously the values are incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I correctly write a table to SQL server inorder to deal with Date variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 14:26:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172146#M44385</guid>
      <dc:creator>DangIT</dc:creator>
      <dc:date>2014-11-14T14:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172147#M44386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you assign a date format to that sas date variable ?&lt;/P&gt;&lt;P&gt;format your_variable date9. ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 09:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172147#M44386</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-15T09:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172148#M44387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Review the SAS/Access interface type conversions. &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n0h4i25zq3t58en1lgr8jjx1rads.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n0h4i25zq3t58en1lgr8jjx1rads.htm"&gt;SAS/ACCESS(R) 9.3 for Relational Databases: Reference, Second Edition&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The default type conversions are done by the variable format attribute.&amp;nbsp; It can be overwritten by a dbtype option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes it smarter when using bulkload processes to do the loading in two steps. SQL-server is not having this type interface.&lt;/P&gt;&lt;P&gt;1/ Create an empty dataset with correct type settings in the dbbms&lt;/P&gt;&lt;P&gt;2/ Fill the data (proc append or whatever) &lt;BR /&gt;Why should you do something like this? It is about avoiding IO and that availability of formats on creating those DBMS tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 10:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172148#M44387</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-11-15T10:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172149#M44388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL server only has datetime variables so you'll need to convert your date variables to datetime variables. &lt;/P&gt;&lt;P&gt;You can use the function dhms(date, 0, 0, 0). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 17:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172149#M44388</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-15T17:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172150#M44389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SAS/ACCESS engine should handle the conversion of a SAS Date to a SQL_DATE correctly (refer to link posted by &lt;A __default_attr="8872" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; ) as long as there is a known standard SAS Date Format assigned to the SAS variable (as suggested by &lt;A __default_attr="645292" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 23:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172150#M44389</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-11-15T23:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172151#M44390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you have a standard SAS Date Format assigned to the SAS variable (so not some custom picture format but something like date9.). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the following option before your SQL or data step. This will show you in the SAS log what the SAS/ACCESS engine actually does and what SQL it sends to your data base. So you should see in the log if and what conversion happens.&lt;/P&gt;&lt;P&gt;options sastrace=",,,d" sastraceloc=saslog nostsuffix;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 23:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172151#M44390</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-11-15T23:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172152#M44391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that true? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tables in SQL Server with just a Date format (no time) and I was able to use a BULK INSERT from a text file to upload the data as a Date format.&lt;/P&gt;&lt;P&gt;For example, I would create the table as: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;Create&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; &lt;SPAN style="color: blue;"&gt;TABLE&lt;/SPAN&gt; [temp]&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date] &lt;SPAN style="color: blue;"&gt;Date&lt;/SPAN&gt; &lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales] &lt;SPAN style="color: blue;"&gt;Real&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: gray;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;GO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and use BULK INSERT to upload the text file where the Date variable has no time element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does SQL Server automatically convert the Date values to datetime and then drop the time element?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 18:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172152#M44391</guid>
      <dc:creator>DangIT</dc:creator>
      <dc:date>2014-11-17T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172153#M44392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not all all dbms specifics are supported by the sas/access interface. Check: &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/67473/HTML/default/viewer.htm#n0pnv46nkmju4kn1njih6xscn71l.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/67473/HTML/default/viewer.htm#n0pnv46nkmju4kn1njih6xscn71l.htm"&gt;SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Fifth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For SQL-server only native windows drivers exists. Running in Unix you are left to an ODBC connection.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;All RDBMS systems are evolving, when you want to know about those details go to that supplier: &lt;A href="http://msdn.microsoft.com/en-us/library/bb630352.aspx" title="http://msdn.microsoft.com/en-us/library/bb630352.aspx"&gt;date (Transact-SQL)&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 19:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172153#M44392</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-11-17T19:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172154#M44393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution that worked in getting around the datetime conversion, its not an elegant solution, but it worked in my case..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first created an empty table in SQL-sever with the Date variable as a Date format and used a Proc Append from SAS to SQL.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;Create&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;TABLE&lt;/SPAN&gt; [temp]&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: gray;"&gt;(&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Date] &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;Date&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: gray;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Sales] &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;"&gt;Real&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: gray;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;GO&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Courier New'; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I had to change the Date variable from SAS had to be converted to a text variable with the format 'YYYY-MM-DD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date_txt=put(Year(Date),4.) || "-" || put(Month(Date),z2.) || "-" || put(Day(Date),z2.)&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 19:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172154#M44393</guid>
      <dc:creator>DangIT</dc:creator>
      <dc:date>2014-11-17T19:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172155#M44394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really a solution as it is telling the date type of sql-server is a string with some constraint on it.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;On the other hand first creating that dataset in native settings and than putting the data in is often seen as a good practice.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 19:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172155#M44394</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-11-17T19:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172156#M44395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating the table first in a data base instead of using a implicit SAS SQL is something I would call "good practice". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you used &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;options "sastrace=",,,d" sastraceloc=saslog nostsuffix;" This would show us in the log the explicit database specific SQL sent to the dbms and we could tell how the SAS/Access engine converts the SAS Date variable and if it does it correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also always write explicit SQL as then you have full control of what gets sent. If this needs to be production worthy code then I'd suggest you don't use your current approach with the text string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 20:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172156#M44395</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-11-17T20:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172157#M44396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Reeza and Xia that when SAS dates are converted to SQL Server datetimes and you will see the value of 01/01/1960 with some time on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, either you need to convert the SAS date to date time using dhms or multiplying the date value with date*24*60*60, or create a table in SQL Server explitly as date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 20:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172157#M44396</guid>
      <dc:creator>SelvaN</dc:creator>
      <dc:date>2014-11-17T20:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172158#M44397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue is that I have tables already in SQL server with the Date (no time) format, reading from SQL server to SAS, isn't a problem, but when I write back I have to convert it to a Datetime format, or if i'm appending/replacing a current table, I will get the data type inconsistency error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The work around I used was to convert the Date to a string and write to the SQL server table with the Date format. In SQL server, the data type for the Date variable is still a Date type and not a string. It seems to write it in as a string from SAS to SQL, but still functions as a Date type when I run queries off of the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 21:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172158#M44397</guid>
      <dc:creator>DangIT</dc:creator>
      <dc:date>2014-11-17T21:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172159#M44398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the conversion to a string the format yyyymmdd &lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#p0iptsg6780kzfn1k5f0b8s7k7dq.htm" title="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#p0iptsg6780kzfn1k5f0b8s7k7dq.htm"&gt;SAS(R) 9.4 Formats and Informats: Reference&lt;/A&gt; is better, delivering the wanted string in one approach.&lt;BR /&gt;I do not know when the data variable was added in SQL it could be SAS is behind in those interfaces. Just something partially or accidently working.&amp;nbsp;&amp;nbsp;&amp;nbsp; TS?&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 21:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172159#M44398</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-11-17T21:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172160#M44399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for pointing me to the YYMMDDxw. format, i've altered the text conversion code to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date_txt=put(Date, YYMMDDd10.) ; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 21:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/172160#M44399</guid>
      <dc:creator>DangIT</dc:creator>
      <dc:date>2014-11-17T21:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading data to SQL server - issue with Date variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/456024#M70058</link>
      <description>&lt;P&gt;Once again you have saved me hours of frustration.&amp;nbsp; Without the time values, valid date formats will not convert properly in SQL (but will not error out).&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 18:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Uploading-data-to-SQL-server-issue-with-Date-variable/m-p/456024#M70058</guid>
      <dc:creator>RXM</dc:creator>
      <dc:date>2018-04-20T18:30:51Z</dc:date>
    </item>
  </channel>
</rss>

