Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

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)

AUTOGENERATE INSERT UPDATE SELECT STATEMENTS

By Chris Morton,

PLEASE NOTE: THIS IS THE OLD VERSION

 

THE NEW VERSION IS HERE

 

All you have to do is change the @tablename and @authorname parameters and use the resulting code.

i have included the primary key in the insert and update statements even though it is not valid.

the code generated is meant to be used as a template to create your actual production SP's

 

please refer to http://www.sqlservercentral.com/scripts/AutoGenerate++++++parameters/64760/ for the updated version

 

have fun

 

Chris Morton cbmorton [AT{ [gmail( . dot . } com ))]

Total article views: 3750 | Views in the last 30 days: 1
 
Related Articles
FORUM

Row Versioning

Row Versioning

FORUM

SQLNCLI version

SQLNCLI version

FORUM

SELECT @@VERSION

SELECT @@VERSION

FORUM

Database Versioning

Stored Procedrue and Tables versioning

FORUM

master..sysdatabases version = 0

master..sysdatabases version = 0

Tags
autogenerate    
chris morton    
codrakon    
insert    
metadata    
parameters    
select    
stored procedures    
update    
 
Contribute