473,792 Members | 3,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to if needed recover from mistake

Hi.
I deleted a stored procedure (one I had written) out of the master database. I
thought I had accidentally put it there, then I got to thinking.. what if it
is normally reflected there, and maybe I should not of deleted it.

So.. my question.. is it normal for procedures in other databases to be
reflected also in the master database, and then how can I restore / recover
the master database if necessary.

I am using sql server 2005 on XP pro.

thanks for the advice
Jeff Kish
May 16 '07 #1
3 2971
Jeff Kish wrote:
I deleted a stored procedure (one I had written) out of the master database. I
thought I had accidentally put it there, then I got to thinking.. what if it
is normally reflected there, and maybe I should not of deleted it.

So.. my question.. is it normal for procedures in other databases to be
reflected also in the master database,
Not in my experience. I haven't used SQL Server 2005 yet, but this
doesn't seem like something that would have changed there. I would
guess that someone just forgot to pick the right the database before
running a CREATE PROCEDURE command.
and then how can I restore / recover the master database if necessary.

I am using sql server 2005 on XP pro.
Googling ("SQL Server 2005" "restore master") turns up
http://msdn2.microsoft.com/en-us/library/ms190190.aspx
May 16 '07 #2
Jeff Kish (je*******@mro. com) writes:
I deleted a stored procedure (one I had written) out of the master
database. I thought I had accidentally put it there, then I got to
thinking.. what if it is normally reflected there, and maybe I should
not of deleted it.
If you found your procedure in master, it was because you added it there,
probably by mistake.

So.. my question.. is it normal for procedures in other databases to be
reflected also in the master database,
Well, you are not the first to make the mistake. But that's not the same
thing as normal.
and then how can I restore / recover the master database if necessary.
I recommend that you read in Books Online if you are interested in
this exercise. That's at least where I would look, if I would run into
the situation that I would need to restore a master database. I don't
do it often enough to know the procedures by heart!

--
Erland Sommarskog, SQL Server MVP, es****@sommarsk og.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
May 16 '07 #3
On Wed, 16 May 2007 22:46:15 +0000 (UTC), Erland Sommarskog
<es****@sommars kog.sewrote:
>Jeff Kish (je*******@mro. com) writes:
>I deleted a stored procedure (one I had written) out of the master
database. I thought I had accidentally put it there, then I got to
thinking.. what if it is normally reflected there, and maybe I should
not of deleted it.

If you found your procedure in master, it was because you added it there,
probably by mistake.

>So.. my question.. is it normal for procedures in other databases to be
reflected also in the master database,

Well, you are not the first to make the mistake. But that's not the same
thing as normal.
>and then how can I restore / recover the master database if necessary.

I recommend that you read in Books Online if you are interested in
this exercise. That's at least where I would look, if I would run into
the situation that I would need to restore a master database. I don't
do it often enough to know the procedures by heart!
Thanks much.
I keep getting my priorities switched around... its hard to keep up on all the
docs, but I keep peeking in there.
Jeff Kish
May 17 '07 #4

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

Similar topics

1
2772
by: Maurizio Berlusconi | last post by:
Hi all I have (my mistake) overwritten the beginning of a file where a long dictionary was pickled with another (pickled and much smaller) dictionary. Since only 10% or so of the original and important data was overwritten, I would be happy if I could somehow recover at least the part that I can still see. The situation is now the following. If I open the file in vi I can see :
1
1752
by: Peanut044 | last post by:
Hi all! I am in need of writing a few stored procedures. The first one is to create a stored procedure to recover a database from backup and the second one is to create a stored procedure to execute a transaction log backup (even though I know this can be done through a maintainence plan). Any help would be greatly appreciated. I know the commands to recover and backup -- but I dont know how to formulate them into a stored procedure
3
1216
by: RLN | last post by:
hi group My database name : developer day 1. Taken full backup day 2. taken differential backup
5
3828
by: Prem K Mehrotra | last post by:
I come from Oracle background. In Oracle, when one wants to do a point in time recovery, one can specify recover database until timestmap. Oracle's database maps to a db2 subsystem, i.e., in Oracle database means entire database, i.e.. all tablespaces (including indexes). I see only recover tablespace and recover indexspace (or index) commands in db2. Therefore, one has to specify all the tablespaces and indexspaces and recover them
1
7629
by: Roberto La Forgia | last post by:
Hi all, there is a utility o procedure to recovery deleted record from a Access table (versione 2002/2003) ? Thanks in advance Roberto
2
8983
by: laststubborn | last post by:
Dear All, One of our employee made a mistake and deleted something from database. I would like to recover that log file without restoring the backup and the other log files. The reason I want to do this is our database is getting real time information I cannot shut down the database. Is there any way to do this please let me know and help me . Kindly regards
4
2090
by: sumedh..... | last post by:
In a compiler there are 36bits for a word and to store a character 8bits are needed. In this to store a character two words appended. Then for storing k characters string,how many words are needed?
6
5616
by: KG | last post by:
Hi, Does anyone knows how to recover the test file db2diag.log. By mistake I have delete the contents of db2diag.log, wondering if I could restore the contents of my db2diag.log.
2
10073
by: kalvarahul | last post by:
Hi All, I deleted few rows from a Table by mistake. Please could you write on the ways to rollback that data? I have still not commited any transaction. Please provide the steps / links / docs for this case. Thank You.
0
10430
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10211
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9033
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.