Select the database in the
Connections view, and then click
New SQL Editor
from the
Connections view tool bar.
If you create a new file in the SQL Editor, the script will not automatically be saved when you exit the editor. For new files, you will not be prompted to save the script when you exit the editor.You can save new scripts by choosing either > before you exit the editor or Save from the context menu in the SQL Editor.
Choose
Generate Select in SQL Editor from the context menu of the
DB Structure view. This option is available when you have a table selected and generates a simple query of all the columns in the table. You can modify the generated code before running it.
Choose
Create Table Script from the context menu of the
DB Structure view. This option is available when you have a table selected and generates a table creation script based on the schema of the selected table. You can modify the generated code before running it
Open an item in the SQL Editor from the
New SQL File wizard. This method creates a script that is a resource in an existing project (and you are prompted to save when you exit the editor).