Figure 11 shows a local-loopback connection that uses sockets and TCP/IP. The name of the host computer is river.
The following table shows the correct entry for the sqlhosts file or SQLHOSTS registry key for the connection shown above in Figure 11.
dbservername | nettype | hostname | servicename |
---|---|---|---|
river_soc | onsoctcp | river | riverol |
If the network connection uses TLI instead of sockets, only the nettype entry in this example changes. In that case, the nettype entry is ontlitcp instead of onsoctcp.
The ONCONFIG file includes the following line:
DBSERVERNAME river_soc
This example assumes that an entry for river is in the hosts file and an entry for riverol is in the services file.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]