Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Create Stored Proc.

Author  Topic 

doran_doran
Posting Yak Master

179 Posts

Posted - 2009-11-23 : 16:49:51
Is there a way (or some script) that I can run that I will create Insert and Update procedures for all the tables I have. I have about 50 tables and dont want to repeat same thing again and again. (with the parameter declaration, etc, whole 9 yards).

nice123ej
Starting Member

48 Posts

Posted - 2009-11-23 : 22:48:07
you can get every table columns then use MS EXCEL to create general procedure format and apply it on each row that has table columns and info
Ex,
CREATE PROCEDURE myTable_INSERT ....
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-23 : 23:49:10
Try any of these: http://www.google.com/search?hl=en&rlz=1T4DKUS_enUS303US304&q=sql+server+stored+procedure+generator&aq=f&oq=&aqi=g-p1g9

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

doran_doran
Posting Yak Master

179 Posts

Posted - 2009-11-24 : 09:14:41
Thank you Tara. That's exactly what I was looking for. I am really glad it has built-in c# wrapper class. Awesome....

Thanks
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-24 : 11:12:46
You're welcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -