2.3. Saving and Running the Script

Save our script to a text file named examples.sql.

Now you have three choices: you can

Now, to run our script in the database created earlier:

  1. isql -user sysdba -password masterkey "localhost:examples"
  2. -i "d:\examples-db\examples.sql"

Do not split this command!

The argument "localhost:examples" uses an alias in place of the file path. It assumes that an alias named ‘examples’ actually exists, of course! The -i switch is an abbreviation of -input and its argument should be the path to the script file you just saved.