Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

AUTOGENERATE INSERT UPDATE SELECT STATEMENTS

By Chris Morton, 2008/11/21

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: 3416 | Views in the last 30 days: 12
 
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

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones