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.

By default, SQL Anywhere® connection profiles use the machine name as the host property. But 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
AutoCommit Option in JDBC Attributes or Operations
Related tasks
Unwired WorkSpace Crashes When Previewing or Test Executing Large Amounts of Data
Cannot Start Unwired WorkSpace After Upgrade
Cannot Access sampledb
Data Source Connection Fails After Installing to a New Directory
Related reference
MS SQL Server 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