Saving SQL Documents

You can save SQL documents as text files to reuse or rerun. The default file extension is .sql.

To save an SQL document

  1. From the SQL page, choose File->Save, click Save or press the CTRL+S hotkey.
  2. The Save As dialog box appears.
  3. Specify the directory path, filename, and file type (SQL Files, All Files) in the dialog box.
  4. Click Save.

If you do not specify a directory path and you are attempting to save a new SQL document, the statements are saved in the current directory.

 Warning

After you have saved an SQL document, the SQL Editor window remains open. If you enter a new query and want to save it to a file, choose File->Save As. This ensures your previously saved file is not overwritten.