Cannot Access Sample Database After Switching Network Types

Problem: After switching network types, SAP Mobile 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 a Wi-Fi connection outside the company's firewall may prevent access to the database even if it is on the same machine as SAP Mobile WorkSpace.

Solution: In SAP Mobile 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 SAP Mobile Server SQL Anywhere database connection pool and reestablish the SAP Mobile Server connection to the database by modifying the same property from hostname to localhost.

Related concepts
Troubleshoot Code Generation
Troubleshoot SAP Mobile WorkSpace Errors
Related tasks
SAP Mobile WorkSpace Crashes When Previewing or Test Executing Large Amounts of Data
Cannot Start SAP Mobile WorkSpace After Modifying Plugins
Datasource Connection Fails After Installing to a New Directory
Related reference
JDBC Connection Errors
Mobile Business Object Errors
Deployment Errors