SYMPTOMS
If the AS/400 Network Attribute DDMACC is set to a value of *REJECT, the following data providers cannot connect over TCP/IP:
Microsoft OLE DB Provider for AS/400 and VSAMMicrosoft OLE DB Provider for DB2Microsoft ODBC Driver for DB2
If the AS/400 Network Attribute DDMACC is set to a value of *REJECT, testing the connection for the data providers listed above returns the following error messages.
For Microsoft OLE DB Provider for AS/400 and VSAM:
Test connection failed because of an error in initializing provider. User is not authorized to use this command.
For Microsoft OLE DB Provider for DB2:
Test connection failed because of an error in initializing provider. User is not authorized to use this command. SQLSTATE: HY000, SQLCODE: -269
For Microsoft ODBC Driver for DB2:
Connection failed
[Microsoft][ODBC Driver for DB2][Microsoft DB2 OLE DB Provider]User is not authorized to use this command. SQLSTATE: HY000, SQLCODE: -269