473,385 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

sp_configure missing - need to allow updates!

Hi,

I have a database server (SQL 6.5 sp5a on NT4) and it is running ok,
however when I tried to run sp_configure - it doesn't exist! It looks
like a number of stored procedures are missing in the Master database
and in order to recreate them (via script taken from other db server) i
need to change the configuration setting to allow updates. But am in
catch 22 - can't change the allow updates setting to 1 as sp_configure
doesn't exist.

Any ideas with how I can change the allow updates settings without
having to use sp_configure?

I would prefer not to rebuild the Master db if at all possible as it
will incur downtime and as I said the server is running ok at the
moment.

Any help would be fantastic as have run out of ideas..

Jul 23 '05 #1
1 2421
You should be able to go to another server and look at the code from
sp_configure, then *very carefully* trace through the code as it would
run if you passed it the proper parameters. Run that code on your bad
server and you should then be able to recreate the stored procedures.

I've never actually tried this, so I suggest that you test it on a test
server until you are comfortable with it.

The important parts of sp_configure are:

---------------------------------------
select @confignum = number
from master.dbo.spt_values,master.dbo.sysconfigures c
where type = 'C'
and (@configvalue between low and high or @configvalue = 0)
and name like '%' + @configname + '%'
and number = c.config
and
((c.status & 2 <> 0 and @show_advance = 1)
OR
(c.status & 2 = 0)
)

update master.dbo.sysconfigures set value = @configvalue
where config = @confignum
---------------------------------------

The rest of the stored procedure deals with error handling and with
determining what to do with parameters that are not a full config name
with a value.

Good luck,
-Tom.

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew Clancy | last post by:
Hi, I'm reposting this question as no resultion as yet. Couple of updates, so re-read if you have seen before. I am trying to set up VS Developer users with non-administrator rights debug ASP...
0
by: serenabarker | last post by:
Hi, I have a database server (SQL 6.5 sp5a on NT4) and it is running ok, however when I tried to run sp_configure - it doesn't exist! It looks like a number of stored procedures are missing in...
6
by: Sharon and James | last post by:
If I build a debug or release version of a C# program using VS .Net and try to run the app on a W98 machine, I get the following error: A required .DLL file, MSCOREE.DLL, was not found. Are the...
1
by: Eric D. Nielsen | last post by:
I'm in the process of implementing a "monitor this" type feature on a web-application. When something changes on the monitored item an email to the subscriber is generated. I'd like to do this...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
3
by: Fred Chateau | last post by:
Still working on my XML DataSet... Having moved on past difficult and complex problems, resolved with the assistance of everyone here, I find myself facing yet another problem. My XML document...
11
by: Peter Webb | last post by:
I previously asked about two problems I had with some graphics - the first was that when I drew animation to a picturebox it wouldn't display when the Form loaded. It was suggested to me by...
7
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
8
by: Nick | last post by:
Hi there, I have a GridView in an UpdatePanel, each time the UpdatePanels Load event fires I set the DataSource and call DataBind of the grid view. This works great once, I add an item to the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.