SQL script typed into the SQL Query pane may be saved to disk in the form of VSQL6 files. These files are UTF8 encoded text files.
Ctrl-O, the menu item File Open Sql Query, or the toolbar button for Open Sql Query will open the load dialog. Choosing a VSQL6 file will then load it into the SQL Query Pane.
Ctrl-S the menu item File - Save Sql Query, or the toolbar button for Save Sql Query will save the currently loaded query to disk. If the file already has a name it will be saved in place of the existing file. If the query does not have a name the user will be prompted to choose a location and name.
By default sql script file will open located in the same directory location as the current database. But the VSQL6 files do not have to be saved with the database. They may be stored anywhere the current user has permissions to write.