Unix Technical Forum

Re: how to delete objects on master db

This is a discussion on Re: how to delete objects on master db within the SQL Server Data Warehousing forums, part of the Microsoft SQL Server category; --> All the objects that should be in the master database have type 'System' in Enterprise Manager, and all the ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 05:05 PM
Jacco Schalkwijk
 
Posts: n/a
Default Re: how to delete objects on master db

All the objects that should be in the master database have type 'System' in
Enterprise Manager, and all the ones that shouldn't have type 'User'. You
can sort on the type column and then select the whole bunch and delete them.
You probably have to do that a few times as objects that are referenced by
other objects (tables referenced by froeign keys for example) can't be
deleted, but you will get there eventually.

--
Jacco Schalkwijk MCDBA, MCSD, MCSE
Database Administrator
Eurostop Ltd.


"Ken" <ken88@hotmail.com> wrote in message
news:063501c35179$b7c9bc50$a401280a@phx.gbl...
> Hi
>
> I accidentally run a script that create all objects from a
> db into master db. Does anyone know how to undo this
> without affecting the critical and important objects on
> master db?
>
> Thanks
>
> Ken



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 12:26 AM.


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