free SQL Server stored procedure generator? [closed]

扶醉桌前 提交于 2019-11-29 08:46:29

SSMS Tools Pack has a nice fit with your requirements. It has also some very nice and useful features for sql server users.

The feature list is given below:

  • Execution Plan Analyzer
  • SQL Snippets
  • Window Connection Coloring
  • Tab Sessions, Window Content History, Query Execution History and Current Window History
  • Format SQL
  • Search Table, View or Database Data
  • Run one script on multiple databases
  • Copy execution plan bitmaps to clipboard or file
  • Search Results in Grid Mode
  • Generate Insert statements from resultsets, tables or databases
  • Regions and Debug sections
  • Running custom scripts from Object Explorer
  • CRUD (Create, Read, Update, Delete) stored procedure generation
  • New query template

Try this new template-driven code generation tool.

www.metadrone.com

There is a stored procedure template on google code here: http://code.google.com/p/metadrone/source/browse/trunk/Templates/SQLServer_CRUDs.mdrone

To execute the script automatically add the runscript command after calling the template in MAIN. Eg:

call CRUDs(sources.SQL_Server)
runscript(sources.SQL_Server, "\path\goes\here\tablecruds.sql")
Fernando Correia

Some stored procedure generators:

General use

SQL Server-specific

See also 1 and 2.

Tangentially related - one of the most interesting projects I have done so far involved writing my own database scripting utility, initially aimed at generating basic CRUD sprocs for each table in a (MS Access or MS SQL Server 2005) database, and then creating very basic class files represeting each class.

Of course, visual studio will also do this for you in a number of different ways out of the box. However, most of that implementation is tightly coupled with ADO.NET, LINQ, and EF.

If you don;t find one that does what you need, take a stab at it.

What I came up with was semi-crude and brute force, but the process was quite educational.

I have since been expanding it to generate a CREATE script for MS Access Databases (which Access does not provide out of the box).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!