Pain Is…

 

Can you guess how this particular story ended? NOT WELL!!!

kick it on DotNetKicks.com

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blogmarks
  • co.mments
  • del.icio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Reddit
  • TailRank
  • YahooMyWeb
 

Other posts

5 responses


  1. Doh!! I did stuff like that (thankfully only on dev databases) quite a bit when I first got started with SQL, back in the day with Query Analyzer.


  2. There definitely should be an option to disable running only the selected text. Or an option to warn on deletes.


  3. there is, it is called implicit transactions, and it allows you to do:
    rollback

    Of course, it also requires commit, which can drive you nuts.


  4. Can Microsoft come up with a confirmation message tool when executing such messages.

    Something like “Are you sure you want to execute this statement”


  5. @John S. “an option to warn on deletes.”

    That’s such a simple solution — but so perfect.
    Just a brain dead little bit of code that says:

    if YourSql.ToUpper().Contains(”DELETE”) or YourSql.ToUpper().Contains(”DROP”) then
    If MessageBox.Show(”Do you really want to exec this delete/drop statement?”, Dialog.OKCancel) == DialogResult.Cancel then Return
    end if

    So much developer grief, gone!

Leave a Reply