Notices
Non Scooby Related Anything Non-Scooby related

MS SQL Svr - Updates to Stored Procedures

Thread Tools
 
Search this Thread
 
Old 27 June 2001 | 02:50 PM
  #1  
Jerome's Avatar
Jerome
Thread Starter
Scooby Regular
 
Joined: Sep 2000
Posts: 4,460
Likes: 0
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 | 05:31 PM
  #2  
Neil Micklethwaite's Avatar
Neil Micklethwaite
Scooby Regular
 
Joined: Dec 1998
Posts: 1,046
Likes: 0
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 | 06:03 PM
  #3  
LanCat's Avatar
LanCat
Scooby Regular
 
Joined: Jul 2000
Posts: 536
Likes: 0
From: cloud cuckoo land
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 | 07:16 PM
  #4  
Neil Micklethwaite's Avatar
Neil Micklethwaite
Scooby Regular
 
Joined: Dec 1998
Posts: 1,046
Likes: 0
Post

Certainly the way us 'Between Contracts' dba types do it.
Old 27 June 2001 | 07:34 PM
  #5  
DaveU's Avatar
DaveU
Scooby Regular
 
Joined: Jun 1999
Posts: 231
Likes: 0
From: Bucks
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 08:12 PM
alcazar
Non Scooby Related
7
02 October 2015 07:08 PM
An0n0m0us
Computer & Technology Related
0
28 September 2015 10:58 PM
Wurzel
Computer & Technology Related
10
28 September 2015 01:28 PM
Littleted
Computer & Technology Related
4
25 September 2015 10:55 PM




All times are GMT +1. The time now is 01:23 AM.