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 Sample database (sampledb).

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

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

  1. Select Start > Programs > Sybase > Unwired Platform > Unwired WorkSpace.
  2. In Enterprise Explorer, expand Database Connections.
  3. Right-click My Sample Database and select Ping.
    • If the ping succeeds, click OK and go to Step 4.
    • If the ping fails, go to the next step to correct the problem.
    Note: Ping confirms whether the sample profile can connect to the sample database.
  4. If the ping fails, verify that Unwired Platform Services, including the Sybase Unwired SampleDB, are running:
    1. On your Windows desktop, open the Services window.
      For example (using the the Windows XP Classic View), select 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.
  5. Right-click My Sample Database and select Connect.
    In Enterprise Explorer, the My Sample Database folder contains the sampledb database.