I use Notepad++ every day, and love it endlessly. The only thing I wish it could do that it can't out of the box is run SQL on a DB.
I use ConEmu to run SQLPlus when I need a command line Oracle environment, and Toad for everything else. So what I end up needing to do is either copy my code from N++ and paste it in ConEmu, or Toad. I wish I could just open the "Run" menu in N++, and have a console pop up that runs the code in ConEmu with SQLPlus.
There is THIS tutorial on how to set up SQLPlus for N++, but I would prefer ConEmu. Is there any way I could modify the code given in that tutorial to use ConEmu instead, or is my thinking all wrong here?
Code in tutorial:
set ORA_USER=bert
set ORA_PASS=bert1234
set ORA_SID= ORCL
npp_save
cmd /c copy /y "$(CURRENT_DIRECTORY)\$(FILE_NAME)" "$(SYS.TEMP)\$(FILE_NAME)" >nul 2>&1
cmd /c echo. >> "$(SYS.TEMP)\$(FILE_NAME)"
cmd /c echo exit >> "$(SYS.TEMP)\$(FILE_NAME)"
sqlplus -l $(ORA_USER)/$(ORA_PASS)@$(ORA_SID) @"$(SYS.TEMP)\$(FILE_NAME)"
If what I'm saying makes no sense, is there a way to use Toad's "Data Grid" as a console in Notepad++?
Thanks for any help you can give.