Usage Note 31602: Encoded passwords cannot be used with the COMPLETE=, PROMPT=, REQUIRED= or NOPROMPT= connection options in a SAS/ACCESS® Interface to ODBC connection
A DBMS password that has been encoded with the PWENCODE procedure cannot be specified in a SAS/ACCESS® Interface to ODBC connection that uses COMPLETE=, PROMPT=, REQUIRED=, or NOPROMPT= connection options.
The connection strings that are specified by the DSN=, USER=, and PWD= options in the LIBNAME statement are passed 'as is' to the database.
In the following example, the DBMS password is encoded with PROC PWENCODE and the encoded value is used in the statement:
libname mydblib odbc noprompt="dsn=SQLSVR;uid=dbtest;pwd='{SAS002}75F12A4A16E53B680C19D301'";
When you submit this code, the following errors are returned:
ERROR: CLI error trying to establish connection: [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'dbtest'.
ERROR: Error in the LIBNAME statement.
To circumvent this problem, you must use an unencoded password when you specify the COMPLETE=, PROMPT=, REQUIRED=, and NOPROMPT= options.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to ODBC | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
Windows Vista | 9.1 TS1M3 SP4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2008-08-27 11:23:11 |
Date Created: | 2008-03-26 16:07:03 |