Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 2nd, 2012, 08:43 AM
Authorized User
 
Join Date: Apr 2008
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default Preventing Mistakes

I've worked with SQL and Oracle over the past few years and wonder if a feature in Oracle is available in SQL ... in our Oracle equivalent of Query Analyzer (etc), everything was transactional, so EVERY change had to be followed by either a COMMIT statement or by clicking the [tick] box

Is there some way of achieveing the same with SQL (I'm using 2008)

I know that I can start out with a BEGIN TRANSACTION, but at work, when the pressure is on, this gets forgotten ... and I've just done the classic

UPDATE <TABLE> SET <column> = 'value'

... and missed the WHERE clause

A sinking feeling when you see the line

284000 Records Updated



Lucky, my backup policy is good (phew!)

Any help appreciated.
__________________
Regards,

Sean
 
Old February 17th, 2012, 07:18 PM
Registered User
 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can read about some options here:

http://forums.asp.net/p/1242243/2281619.aspx





Similar Threads
Thread Thread Starter Forum Replies Last Post
Code mistakes steag BOOK: Beginning Drupal 0 January 13th, 2011 11:31 AM
Mistakes in Chapter 8 (Forums) briandre BOOK: ASP.NET 3.5 Website Programming Problem Design Solution 0 December 12th, 2009 11:21 AM
A lot of mistakes!!! fisics82 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 March 14th, 2006 04:56 PM
Preventing Hotlinking simtrade Classic ASP Professional 0 October 14th, 2005 05:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.