According to the UI spec at
the Run File action should also work for SQL files (from the user's point of
view). Assuming a SQL editor is active, choosing Run - Run File - Run File from
the menu or pressing Shift+F6 should execute the SQL statement(s) in the editor.
Still not possible now, but the new actions API which is being developed in
trunk will allow it.
Postponing as issue 70280 has been postponed.
Not fixable for 6.5.
Reassigned to new owner.
Now when issue 102081 is addressed, could this be implemented for NB 6.8? I would find this useful especially in the
following scenario: I receive a project, which contains instructions on how to create a database for this project.
Typically, there will be a .sql script which contains commands to create the db schema (CREATE TABLE...) and to populate
it with data (INSERT INTO...). The user needs to create a new database and populate it with this .sql script.
I should be able to run SQL files directly using Run File. Opening it in the SQL editor and running it from there is not
intuitive (I don't want to edit it, so why should I open it). I need to be able to run it not only against existing db
connection, I should be able to create a new connection (against existing database), or a new database in the process.
See also issue 170181 which suggests how to make "New Database" more prominent.
Integrated into 'main-golden', will be available in build *200908211401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jiri Rechtacek <email@example.com>
Log: #71231: The Run File action does not work for SQL files