Creating a database connection profile

A connection profile must exist for the MySybStore tutorial database. The connection profile allows Sybase WorkSpace to connect to the database after the database is started.

NoteThe first time you execute a SQL file, you must specify the connection profile. Subsequently, you do not have to specify the connection profile unless you want to change it. You can create multiple connection profiles for the same database by saving each profile to a different file, which allows you to use different ports or user names and passwords.

A connection profile contains the connection information, for example, host name and port, that Sybase WorkSpace uses to connect to a server resource. Create and configure connection profiles in the Enterprise Explorer.

  1. Select the Enterprise Explorer tab, which displays in the perspective if the view is open. If the view is not open, select Window|Show View|Enterprise Explorer to open the view.

  2. In the Enterprise Explorer, right-click Databases and select New from the context menu.

  3. When the New Connection Profile wizard opens, select Sybase ASA from the connection profile type list and click Next.

  4. Do the following: Type MySybStore in the Name field, and MySybStore Connection Profile in the Description field. Click Next.

  5. On the Driver and Connection Details page:

  6. Click Test Connection to ensure the values are correct.

    The following prompt displays: Ping Succeeded.

    NoteIf the ping fails, verify that the MySybStore database is running and that the values entered for Driver and Connection Details are correct.

  7. Click OK.

  8. Click Finish.

    Next, test the connection profile.

  9. In the Enterprise Explorer, expand Databases, right-click the MySybStore connection profile, and select Ping from the context menu.

  10. When a prompt indicates Ping Succeeded, click OK.

    The final step in this procedure is to connect to the database.

  11. In the Enterprise Explorer, right-click the MySybStore connection profile in Databases and select Connect from the context menu.

    A successful connection is indicated when the database version appears beside the database name in the Enterprise Explorer and a database icon displays under the connection profile.

You have created a connection profile and connected to a running database. The MySybStore database is used in many of the Sybase WorkSpace tutorials.