Cannot Access Sample Database After Switching Network Types

Problem: After switching network types, Unwired WorkSpace is unable to connect to the predefined "My Sample Database" connection profile.

The "My Sample Database" connection profile, by default, uses 'localhost' as the hostname. But if you change it to the real hostname, then when you switch network types, the host may not be recognized. For example, moving a laptop from an office ethernet to an WiFi connection outside the company's firewall may prevent access to the database even if it is on the same machine as Unwired WorkSpace.

Solution: In Unwired WorkSpace, modify the connection profile host property to indicate localhost as the Host. To verify the connection is working, click Test Connection to ping the database. You may also have to redeploy any projects that access an Unwired Server SQL Anywhere database connection pool and reestablish the Unwired Server connection to the database by modifying the same property from hostname to localhost.

Related concepts
Troubleshoot Code Generation
Related tasks
Unwired WorkSpace Crashes When Previewing or Test Executing Large Amounts of Data
Data Source Connection Fails After Installing to a New Directory
Attribute Length Set Incorrectly for Operation and Load Parameters
Related reference
JDBC Connection Errors
Mobile Business Object Errors
Preview Errors for a Web Service Mobile Business Object
Compiler Errors When Deploying Device Applications
Deploying to Unwired Server Fails
Deploying to Unwired Server in a Cluster Fails
Data Truncation for Attributes without Explicit Length
Input Parameters Fail to Generate for Complex Data Sources
Client Device Database Performance Issues after Primary Key Changed to Composite