3

Would like to know if one can view stored proc is Squirrel. Is there a plugin for this?

Nakilon
  • 34,866
  • 14
  • 107
  • 142
sonx
  • 661
  • 4
  • 19
  • 31

4 Answers4

2

What version of SQuirreL are you working on ?..

I have 3.2.1 and all I need to do is click on "Objects" tab, expand your connection, look for your database, expand it, and then look for "Procedure" then click on the procedure you want, and then click on the "Source" tab

JCarlos
  • 51
  • 1
  • 8
2

You have to install your correspondent database plugin. In case of sqlserver, you can install it with squirrel-sql installation by checking Microsoft SQL-Server Plugin as per below:

sqlserver plugin.

So once installed, you can:

  • Right click on the stored procedure in the left menu,
  • Select sql server from the drop down menu,
  • Then select script procedure from the sub-menu

Here is a screenshot:

enter image description here

hd84335
  • 8,815
  • 5
  • 34
  • 45
1

An easy way to get Stored Procedures source code on Ingres database:

select
    procedure_name, text_sequence, text_segment
from
    iiprocedures
where
    procedure_name = 'sp_name_goes_here'
order by
    text_sequence

Aloha!

0

Using SQuirreL 3.5.2, I knew there should be Procedures in our database but they were not showing by default. I right-clicked the Procedures and chose "Refresh Item" to get them to show. Must not be loaded by default so that can be misleading.

Ryan D
  • 1,023
  • 11
  • 16