Creating a SQL File

To create a new SQL (.sql) file and add it to the current project, perform these steps:

  1. In the Navigator, select the project.
  2. Choose File | New to open the New Gallery.
  3. In the Categories tree, expand Database Tier and select Database Files.
  4. In the Items list, double-click SQL File.
  5. In the New SQL File dialog, provide the details to describe the new file. Click Help for further instructions.
  6. Click OK.

An empty SQL file will be added to the current project and be opened for editing.


Embedding SQL in Java Programs with SQLJ