Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab. Download now (direct download link)
Thank this author by sharing:
By Ryan Foote, 2009/07/06
Introduction
Often times DBA's are tasked with creating simple create, read, update, and delete stored procedures and scripts. I created a script to quickly generate the T-SQL for CRUD statements in an easy to read formatted output. This will give a DBA a good starting point to easily generate a template for CRUD statements.
How to use
Enter the name of the defined table as the @TableName parameter to generate the CRUD statements against. Choose the type of CRUD statement for the @TypeOfCrud parameter and there is a key listed as a comment in the script. If using parameters for the insert statement then set @Parameters equal to 1 if not using parameters for the insert statement then set @Parameters equal to 0.
Dynamic Stored Proc to generate Create Table Script ,taking table_name as parameter
This article from new author Oleg Netchaev describes the cursor-less script used to generate insert ...
This Script generates drop and create scripts for views or stored procedures.
Stored proc for scripting out full CREATE INDEX statements from your table indexes with all filegrou...
This script Generates the insert statements for a particular table.