Unix Technical Forum

how to if needed recover from mistake

This is a discussion on how to if needed recover from mistake within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi. I deleted a stored procedure (one I had written) out of the master database. I thought I had ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 03:05 PM
Jeff Kish
 
Posts: n/a
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 03:05 PM
Ed Murphy
 
Posts: n/a
Default Re: how to if needed recover from mistake

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 03:05 PM
Erland Sommarskog
 
Posts: n/a
Default Re: how to if needed recover from mistake

Jeff Kish (jeff.kish@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, esquel@sommarskog.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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-01-2008, 03:05 PM
Jeff Kish
 
Posts: n/a
Default Re: how to if needed recover from mistake

On Wed, 16 May 2007 22:46:15 +0000 (UTC), Erland Sommarskog
<esquel@sommarskog.se> wrote:

>Jeff Kish (jeff.kish@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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:16 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com