Re: master database

From: Peter The Spate (anonymous_at_discussions.microsoft.com)
Date: 09/27/04


Date: Mon, 27 Sep 2004 06:16:33 -0700


"Oh and of course there's a number of times I've run a
script to create stored procs only to realize I was in the
wrong DB.... like master. :-)"

Been there, done that, had the frantic fear filled 20
minutes clearing it up before someone finds out....

Peter

>-----Original Message-----
>
>"Wayne Snyder" <wayne.nospam.snyder@mariner-usa.com>
wrote in message
>news:%238DrO4IpEHA.1272@TK2MSFTNGP09.phx.gbl...
>> I agree, talk to the DBA... I think in Oracle it is not
a big deal, but in
>> SQL it is... Without a working master, your server is
down. By placing
>> anything in master you are openining yourself up to
database full and
>other
>> issues which could hurt...
>>
>> One thing that some people do is to create addition
Special, system
>> procedures in master - that is a normal and accepted
practice... But do
>not
>> place data there..
>>
>
>Well, normal, perhaps. Accepted is debatable. You never
know when MS is
>going to come along and change the rules.
>
>Having said that, I've done it. sp_tablespaceused_u is
one that I use a lot
>for example and having it in the master db is a big help.
>
>(This shows me how much each table within a DB is using.
Needs some work,
>but works for me.)
>
>I tend to add the _u at the end so I know it's user
created so that MS is
>less likely to come along with their OWN stored proc and
screw me up. :-)
>
>Oh and of course there's a number of times I've run a
script to create
>stored procs only to realize I was in the wrong DB....
like master. :-)
>
>
>> --
>> Wayne Snyder, MCDBA, SQL Server MVP
>> Mariner, Charlotte, NC
>> www.mariner-usa.com
>> (Please respond only to the newsgroups.)
>>
>> I support the Professional Association of SQL Server
(PASS) and it's
>> community of SQL Server professionals.
>> www.sqlpass.org
>>
>
>
>.
>



Relevant Pages

  • Re: master database
    ... > minutes clearing it up before someone finds out.... ... Tibor Karaszi, SQL Server MVP ... Without a working master, your server is ... >>stored procs only to realize I was in the wrong DB.... ...
    (microsoft.public.sqlserver.server)
  • Re: SQL 2005 - SQLDMO - Adding Logins/ Users
    ... I don't know about the tempdb thing, but anytime I want to know how to ... then pick through the script and clean it up a bit. ... it...I bet by adding it to the master db that it is automatically added ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)
  • SQL Server Management Studio "Generate Scripts" Drop / Create Option
    ... I just went to create a script for some tables and stored procs that I have ... created in a SQL Server 2005 database. ...
    (microsoft.public.sqlserver.tools)
  • RE: Rename SQL Server 2000 network name
    ... After you have change the server name, run the following script in SQL Server ... use master ... sp_dropserver 'oldservername' ...
    (microsoft.public.sqlserver.connect)
  • Re: Please answer my queries for fresh Installation
    ... You can restore MSDB as well as master. ... > SQL Server, It will create Master, MSDB databases. ...
    (microsoft.public.sqlserver.server)