Accessing MS SQL Server database from the iSeries
I keep geting "host name not found" on as400.
Thanks,
Lan
Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.
The ‘host name not found’ error suggests that the AS400 is not able to resolve the server name to an IP address.
This is usually because there is no DNS server in your network and/or the remote system has not been defined in your AS400’s host table.
Try pinging the IP address of the SQL server from the AS400.
If this works, and you do not have a DNS server set up in your network, you will need to add the SQL server’s details to the hst table on the AS400:
enter command CFGTCP
take option 10, ‘Work with TCP/IP host table entries’ and add the IP address and name of the SQL server.