<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"><channel><title>Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx</link><description>We had a discussion yesterday about Management Studio, and we focused on the “ Delete ” command. In SQL Server 2005, you can right-click a database and select “ Delete ”. You get a panel where you can set some options, or you can just click OK and the</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#6472096</link><pubDate>Thu, 22 Nov 2007 18:33:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6472096</guid><dc:creator>FrankR</dc:creator><description>&lt;p&gt;Making the ability to vreate a database with a NODROP option (or something like it) would, to my opinion, be a great solutio. This gives the DBA the ability to decide on how secure he wants to be.&lt;/p&gt;
&lt;p&gt;Furthermore I would consider making a server setting which can be set to put on to replace the DELETE IMMEDIATLY option by DEFFERED DELETE option. The DEFFERED DELETE (hope my grammar is correct) could be your solution (Take offline and delete in x days). The great thing about this deffered delete is that yu get the opportunity to discover your error ;-)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6472096" width="1" height="1"&gt;</description></item><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#5965844</link><pubDate>Wed, 07 Nov 2007 21:09:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5965844</guid><dc:creator>BuckWoody</dc:creator><description>&lt;p&gt;That's an interesting suggestion - and in fact, with the new DMF feature in SQL Server 2008 you can prevent things like that. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5965844" width="1" height="1"&gt;</description></item><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#5965292</link><pubDate>Wed, 07 Nov 2007 20:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5965292</guid><dc:creator>jrea8830</dc:creator><description>&lt;p&gt;I like the backup as an option only; I don’t think it is a good way to resolve the current discussion though.&lt;/p&gt;
&lt;p&gt;I like the idea of instituting a flag/option that can be set on the database to prevent deletion. An example would be: CREATE DATABASE mydb WITH NODROP;&lt;/p&gt;
&lt;p&gt;Then if the user tries to DROP this database they would receive an error stating this flag exists.&lt;/p&gt;
&lt;p&gt;The user could pass a command to remove the flag, such as: ALTER DATABASE mydb WITH ALLOWDROP;&lt;/p&gt;
&lt;p&gt;I think this solution would cover both types of DBAs. Those that do development may not be as interested in more work to DROP a database (think if this was implemented with tables, would you want to have another confirmation?), and those that are in production have an ‘option’ to further secure their databases. How can this not be a good thing? Options are much better than having more work forced upon us.&lt;/p&gt;
&lt;p&gt;Also, can you please move the Delete command in the context popup menu? I agree it is too close to ‘Rename’. Maybe put another line-separator in there to make it so that I don’t accidentally click ‘Delete’.&lt;/p&gt;
&lt;p&gt;Thanks for listening to me!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5965292" width="1" height="1"&gt;</description></item><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#5954343</link><pubDate>Wed, 07 Nov 2007 11:55:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5954343</guid><dc:creator>justinb486</dc:creator><description>&lt;p&gt;Morning (UK time). &amp;nbsp;The offline/delete sounds great. &amp;nbsp;To be able to set a flag on a DB so that the TSQL DROP DATABASE command warns but doesn't drop would be good, so people can't accidentally do it via script too.&lt;/p&gt;
&lt;p&gt;That sounds like something that would be great in a service pack/addon for SQL2000/2005...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5954343" width="1" height="1"&gt;</description></item><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#5948034</link><pubDate>Wed, 07 Nov 2007 03:46:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5948034</guid><dc:creator>BuckWoody</dc:creator><description>&lt;p&gt;Great informsation! &amp;nbsp;Here's what I'm thinking based on what I've heard: How about a dialog that shows you the last backup of the database before you drop it? And how about an option to &amp;quot;Take Offline and Delete in X days&amp;quot;?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5948034" width="1" height="1"&gt;</description></item><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#5938922</link><pubDate>Tue, 06 Nov 2007 19:11:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5938922</guid><dc:creator>justinb486</dc:creator><description>&lt;p&gt;Re the last few comments, in my company (European support only) we have 3,328 SQL databases and growing, all of which follow our service model naming conventions i.e. they're all named pretty much the same which is very scary! &amp;nbsp;&lt;/p&gt;
&lt;p&gt;So something that steps out of the ANSI standard of drop database, to something with a bit more validation (optional to only enable on production/important) would be handy.&lt;/p&gt;
&lt;p&gt;In some very secure environments I've worked in previously, to delete a key entry, let alone a DB required 2 authorised users to approve. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;To stop a typo dropping a &amp;#163;50 billion SAP DB rather than it's n-th degree prod sized copy would be good... &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5938922" width="1" height="1"&gt;</description></item><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#5936931</link><pubDate>Tue, 06 Nov 2007 17:23:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5936931</guid><dc:creator>rkralston</dc:creator><description>&lt;p&gt;I suppose having an &amp;quot;Are you sure&amp;quot; dialog would be OK. &amp;nbsp;The two phase commit, get a bunch of passwords idea is right out. &amp;nbsp;We're not launching nuclear warheads (or is that nuculer?). &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I understand wanting to save people who don't know what they are doing, but the organization that turns such a person loose on their mission critical data will be having other problems as well.&lt;/p&gt;
&lt;p&gt;Honestly, this seems like the last group that needs to have their hands held. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the other hand, as you make SQL Server more like Access (is that more accessible?) you will need to consider this expanded user group in your admin designs.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5936931" width="1" height="1"&gt;</description></item><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#5936378</link><pubDate>Tue, 06 Nov 2007 16:50:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5936378</guid><dc:creator>FBuchan</dc:creator><description>&lt;p&gt;It's A-OK as it is, because it is secure, and simple, and that dialog box is pretty clear what's happening. But why not enhance the dialog some, getting the best of all worlds?&lt;/p&gt;
&lt;p&gt;For example, leave the process as it is currently by default. In the confirmation dialog provide a checkmark that backs up the current database to a safe location before deleting it. If checked, spawn a backup and complete it appropriately, then return to the deletion. Inside the SSMS options, provide a checkbox that reads something like &amp;quot;backup any database to the following location by default when deleting,&amp;quot; and a path navigator to set that locaation. (Maybe a folder called &amp;quot;Backups\Deleted&amp;quot; or some such, by default.) This way, for those who like the speed provided by the delete as it is, they have no gripes; and for others who want to be extra-safe, they have a simple new feature that will make their lives easier.&lt;/p&gt;
&lt;p&gt;Most of us probably have protocols for deletion, but no one could really argue with that kind of automated helper. (And I'm being selfish, because basically, that's what I tend to do, just on the off chance I decide later I wanted that database back, and such a feature would reduce my clicks significantly.)&lt;/p&gt;
&lt;p&gt;While you're at it, though, you could add some colour to certain confirmation dialogs, or maybe a big icon with a warning context. The only complaint I have these days about SSMS, now that I've gotten used to its oddities, is that every dialog looks the same for the most part. Any dialog that commits an action of serious nature, like a deletion or detaching, should visually remind the user they are about to do something serious. Colour isn't a crime when used sparingly, and again no one would argue such a change because at hour 10 of a long day, a few obvious visual clues you're about to do something heinous would be nice.&lt;/p&gt;
&lt;p&gt;Fantastic discussion, though, and I really look forward to seeing future value is the SSMS interface.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5936378" width="1" height="1"&gt;</description></item><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#5935922</link><pubDate>Tue, 06 Nov 2007 16:28:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5935922</guid><dc:creator>markh319</dc:creator><description>&lt;p&gt;I would like an easy way to kick everyone out and delete a db with a couple of keystrokes, instead of having to find my script to kick everyone out then drop the db.....&lt;/p&gt;
&lt;p&gt;You could use a 'recycle bin' approach maybe with a 'destroy permanantly' checkbox?&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5935922" width="1" height="1"&gt;</description></item><item><title>re: Should it be easy to delete a database?</title><link>http://blogs.msdn.com/b/buckwoody/archive/2007/10/30/should-it-be-easy-to-delete-a-database.aspx#5935259</link><pubDate>Tue, 06 Nov 2007 15:50:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5935259</guid><dc:creator>slamberson</dc:creator><description>&lt;p&gt;Implementing a feature which requires the user wishing to delete a database to type the full name of the database they wish to delete **might** make the person consciously aware of what they are doing. &amp;nbsp;(Make sure to disable copy/paste.)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5935259" width="1" height="1"&gt;</description></item></channel></rss>