Notices
Non Scooby Related Anything Non-Scooby related

MS SQL Svr - Updates to Stored Procedures

Thread Tools
 
Search this Thread
 
Old 27 June 2001, 01:50 PM
  #1  
Jerome
Scooby Regular
Thread Starter
 
Jerome's Avatar
 
Join Date: Sep 2000
Posts: 4,460
Likes: 0
Received 0 Likes on 0 Posts
Question

I am using Stored Procedures with an SQL Server database. Periodically I have to modify these stored procedures and this requires a formal release of software.

At the moment these stored procedures are being updated manually (by systems bods) via the Enterprise Manager for these releases on the production system.

Is there a better way of updating these SP's? I would rather take out the human error element of updating them - a typo would be far too easy. Also, fallback procedures would be performed by the same numpty who'd made a typo in the first place. There must be a better way, but these SP's aren't stored as a file on the hard drive and I can't think of a better way of updating them.

Anyone got any better ideas?
Old 27 June 2001, 04:31 PM
  #2  
Neil Micklethwaite
Scooby Regular
 
Neil Micklethwaite's Avatar
 
Join Date: Dec 1998
Posts: 1,046
Likes: 0
Received 0 Likes on 0 Posts
Post

Hi jerome

Have you used Scripting. ( select SP's , drop and create - DO NOT select dependant objects as this will drop and recreate tables, views , etc )

You generate a script ( stored wherever ) and then modify the script.

Then open script in query analyser and run it.

Drop me an E if you require any further help.
Old 27 June 2001, 05:03 PM
  #3  
LanCat
Scooby Regular
 
LanCat's Avatar
 
Join Date: Jul 2000
Location: cloud cuckoo land
Posts: 536
Likes: 0
Received 0 Likes on 0 Posts
Post

Scripting is the way the dba's here do it. Saving the scripts also makes re-creating the server easier if you have a disaster or need to set up a test server.
Old 27 June 2001, 06:16 PM
  #4  
Neil Micklethwaite
Scooby Regular
 
Neil Micklethwaite's Avatar
 
Join Date: Dec 1998
Posts: 1,046
Likes: 0
Received 0 Likes on 0 Posts
Post

Certainly the way us 'Between Contracts' dba types do it.
Old 27 June 2001, 06:34 PM
  #5  
DaveU
Scooby Regular
 
DaveU's Avatar
 
Join Date: Jun 1999
Location: Bucks
Posts: 231
Likes: 0
Received 0 Likes on 0 Posts
Post

yup - scripting is the way to do it. Updating them manually is a bit risky what with human errrror and all...

Dave
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
alcazar
Non Scooby Related
7
02 October 2015 06:08 PM
An0n0m0us
Computer & Technology Related
0
28 September 2015 09:58 PM
Wurzel
Computer & Technology Related
10
28 September 2015 12:28 PM
Littleted
Computer & Technology Related
4
25 September 2015 09:55 PM



Quick Reply: MS SQL Svr - Updates to Stored Procedures



All times are GMT +1. The time now is 04:28 AM.