In order to insert a date field into a Microsoft SQL Server table, the date field in SAS must be formatted as mmddyy10.
If the SQL Server table already exists, then use the SASDATEFMT data set option (the SAS date variable must be formatted as an mmddyy10.). Here is an example,
SAS System | SAS/ACCESS Interface to ODBC | Microsoft® Windows® for x64 | 9.2 | | | |
Microsoft Windows 8 Enterprise 32-bit | 9.2 | | | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.2 | | | |
Microsoft Windows 8 Pro 32-bit | 9.2 | | | |
Microsoft Windows 8 Pro x64 | 9.2 | | | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 | | | |
Microsoft Windows XP 64-bit Edition | 9.2 | | | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 | | | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 | | | |
Microsoft Windows 10 | 9.2 | | | |
Microsoft Windows 8.1 Pro x64 | 9.2 | | | |
Microsoft Windows 8.1 Pro 32-bit | 9.2 | | | |
Microsoft Windows 8 Enterprise x64 | 9.2 | | | |
Microsoft Windows 8.1 Enterprise x64 | 9.2 | | | |
Microsoft Windows Server 2003 for x64 | 9.2 | | | |
Microsoft Windows Server 2008 | 9.2 | | | |
Microsoft Windows Server 2008 R2 | 9.2 | | | |
Microsoft Windows Server 2008 for x64 | 9.2 | | | |
Microsoft Windows Server 2012 Datacenter | 9.2 | | | |
Microsoft Windows Server 2012 R2 Datacenter | 9.2 | | | |
Microsoft Windows Server 2012 R2 Std | 9.2 | | | |
Microsoft Windows 11 | 9.2 | | | |
Microsoft Windows 95/98 | 9.2 | | | |
Microsoft Windows 2000 Advanced Server | 9.2 | | | |
Microsoft Windows 2000 Datacenter Server | 9.2 | | | |
Microsoft Windows 2000 Server | 9.2 | | | |
Microsoft Windows 2000 Professional | 9.2 | | | |
Microsoft Windows NT Workstation | 9.2 | | | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 | | | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 | | | |
Microsoft Windows Server 2003 Standard Edition | 9.2 | | | |
Microsoft Windows Server 2012 Std | 9.2 | | | |
Microsoft Windows Server 2016 | 9.2 | | | |
Microsoft Windows Server 2019 | 9.2 | | | |
Microsoft Windows Server 2022 | 9.2 | | | |
Microsoft Windows XP Professional | 9.2 | | | |
Windows 7 Enterprise 32 bit | 9.2 | | | |
Windows 7 Enterprise x64 | 9.2 | | | |
Windows 7 Home Premium 32 bit | 9.2 | | | |
Windows 7 Home Premium x64 | 9.2 | | | |
Windows 7 Professional 32 bit | 9.2 | | | |
Windows 7 Professional x64 | 9.2 | | | |
Windows 7 Ultimate 32 bit | 9.2 | | | |
Windows 7 Ultimate x64 | 9.2 | | | |
Windows Millennium Edition (Me) | 9.2 | | | |
Windows Vista | 9.2 | | | |
Windows Vista for x64 | 9.2 | | | |