Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stored Procedure generator tool [closed]

I am looking for tool which will generate the basic stored procedure structure (CRUD operations) for the given table, Is there any tool for the same?

like image 529
Manoj Talreja Avatar asked May 21 '10 21:05

Manoj Talreja


People also ask

How do I close a stored procedure?

Expand Databases, expand the database in which the procedure belongs, and then expand Programmability. Expand Stored Procedures, right-click the procedure to remove, and then click Delete.

How do I open a stored procedure?

Using SQL Server Management StudioExpand Stored Procedures, right-click the procedure and then select Script Stored Procedure as, and then select one of the following: Create To, Alter To, or Drop and Create To. Select New Query Editor Window. This will display the procedure definition.

How do I open a stored procedure in Squirrel?

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.

Can we create stored procedure without begin and end?

There is no difference. That is, it's optional. BEGIN / END is optional, you can add them anywhere (without any IF, WHILE blocks...).


3 Answers

For MS SQL there is SSMS Tools Pack, works great!

like image 185
Dustin Laine Avatar answered Sep 22 '22 00:09

Dustin Laine


Some stored procedure generators:

General use

  • CodeSmith Generator - commercial software
  • MyGeneration - free
  • Metadrone - free

SQL Server-specific

  • SSMS Tools Pack
  • Stored Procedure Generator

See also 1 and 2.

like image 32
Fernando Correia Avatar answered Sep 25 '22 00:09

Fernando Correia


If you want to generate stored procedures to access your relational database system, you should look at CodeFluent Entities which is free for personal and see if it can meet your needs.

This tools allows you to generate tables, stored procedures and views with relative ease and it supports Microsoft SQL Server, Microsoft SQL Azure, Oracle, MySQL and PostgreSQL.

like image 28
Antoine Diekmann Avatar answered Sep 26 '22 00:09

Antoine Diekmann