IT2002 Database Technology and Management
2007/2008 Semester II

Using Sybase (in the Lab)

1. Connection to SyBase Database (sundbl)

Follow these instructions to connect to the Sybase Database server from the Lab computers:

2. Change Password

You will have to change your password since this is the first time you're logging into the Sybase server. Please change your password by using this command in the SQL window:

        GRANT CONNECT TO your_login IDENTIFIED BY new_password

Note1: replace your_login and new_password accordingly with your own login and your new password.
Note2: Enclose new_password in single quotes: Eg. if your new password is hello, you must write 'hello'

3. You can start writing your SQL code!

The exercises for the SQL labs are already published in the IVLE workbin.

4. How to check your tables

After running the CREATE TABLE commands, you can see which tables you have  with the following command:
        SELECT name
        FROM sysobjects
        WHERE type = 'U' AND uid = user_id('put_your_login_here');

 

Generating the demo database

We will use a demo database which models a bank application.

 

Accessing Sybase from outside the lab

You can access Sybase from outside the lab, in order to prepare the exercises. There are two methods:

  1. Install the Sybase server on your own PC (recommended).
  2. Access the lab's server from outside the lab (not recommended and not guaranteed to work).

 

Questions, etc.

Post your questions to the IVLE Forum.

 


Have fun with SQL!