Re: how to if needed recover from mistake



Jeff Kish (jeff.kish@xxxxxxx) 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@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: SQL Server 2005 Resource Database
    ... from trying to separate the resource and master files. ... the SQL Server 2005 topic will be updated in the next scheduled release ... In 2008 the requirement for the Resource and Master database to remain ...
    (microsoft.public.sqlserver.setup)
  • Re: Report of the Best Practice Analyser
    ... Vyas, MVP ... I have a dtproperties tabel in my master database - not a dt_properties ... > Vyas, MVP (SQL Server) ...
    (microsoft.public.sqlserver.tools)
  • Re: Cluster will not fail over.
    ... Could not recover the master database! ... If you intend to stay on SP3 (for SQL Server), you should at least apply the ... >> From SQL server logs ...
    (microsoft.public.sqlserver.clustering)
  • Re: How to protect SQL Server Express database from reverse engineerin
    ... prevent anyone from reverse engineering our database. ... I say within reasonable limits, ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Re: Problem with my SQL 2000 Maintenance plans.
    ... I wouldn't use maint plan for this. ... using the most recent update of Books Online). ... If you do have a problem in the database, you want to be alerted so you can do ... >> option will most probably be removed in next version of SQL Server. ...
    (microsoft.public.sqlserver.server)