Connecting to the Sample Database

Use the default database connection profile to test and connect to the sample database.

Installing Sybase Unwired Platform also installs a sample database, sampledb, which you can use to create and test mobile business objects (MBOs). A default connection profile (My Sample Database), included with the installation, is configured to access the sampledb database.

Sybase Unwired Platform Services can start the database automatically, depending on your license type: Sybase Unwired Platform Development Edition normally starts the database automatically. However, if you are running Deployment Edition, you must start the database manually.

Sybase Unwired Platform development edition servers normally start the database automatically. However, the Personal Edition requires you to start the database manually.

In this task you connect to the sample database using the default connection profile, after starting the database, if necessary. This task is required for all tutorials, but you need to perform it only once.

  1. In the Enterprise Explorer, expand Database Connections.
  2. Right-click My Sample Database and select Ping.
    • If the ping fails, go the next step to correct the problem.
    • If the ping succeeds, click OK and go to Step 4.
    Ping confirms whether the sample profile can connect to the sample database.
  3. If the ping fails, verify that Unwired Platform Services, including the Sybase Unwired sample database, are running:
    1. On your Windows desktop, open the Services window.
      For example (using the the Windows XP Classic View), click Start > Settings > Control Panel. In the Control Panel, double-click Administrative Tools, then double-click Services.
      Your installation options (for example, license type, whether or not you installed a cluster, and so on) determine which Sybase services are running.

    2. In the Services window, check the Status column of the Sybase Unwired SampleDB service. If the status is not Started, right-click the service and select Start.
    3. Go back to Step 2.
  4. Right-click My Sample Database and select Connect.
In Enterprise Explorer, the Database Connections folder contains the sampledb database.