If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Developer queston about DB2 transactions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-16-03, 14:29
srp srp is offline
Registered User
 
Join Date: Oct 2002
Posts: 1
Developer queston about DB2 transactions

A developer recently asked me ...

Some transacted database systems have the ability to take a handful of SQL statements, excersise them in order without checking constraints until all of the statements have been evaluated. Thus if you update a row to a row that already exists (key fields) and then delete the row that previously existed it results in an update that is not invalid. Confusing, I know. Can DB2 facilitate this kind of behavior? What is the technical term for this process?
Reply With Quote
  #2 (permalink)  
Old 10-16-03, 16:19
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
Re: Developer queston about DB2 transactions

Quote:
Originally posted by srp
What is the technical term for this process?
A lie...

all transactions within their scope must conform to all constraints...
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #3 (permalink)  
Old 10-16-03, 20:08
chuzhoi chuzhoi is offline
Registered User
 
Join Date: Dec 2002
Posts: 134
Re: Developer queston about DB2 transactions

I think it can be called deffered constraint checking. And no, it's not supported by DB2. I mean after set integrity off, no inserts is allowed

As far as I remember, you can do someting like this in Oracle

-dmitri
Reply With Quote
  #4 (permalink)  
Old 10-17-03, 05:32
blom0344 blom0344 is offline
Registered User
 
Join Date: Jan 2003
Location: Zutphen,Netherlands
Posts: 256
Yep, ORACLE allows this by validating at commit time instead of transaction time.
__________________
Ties Blom
Senior Application Developer BI
Getronics Healthcare
DB2,ORACLE,Powercenter,BusObj,Access,
SQL, SQL server
Reply With Quote
  #5 (permalink)  
Old 10-17-03, 13:04
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
Quote:
Originally posted by blom0344
Yep, ORACLE allows this by validating at commit time instead of transaction time.
Really? It's not a server setting?
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #6 (permalink)  
Old 10-21-03, 04:00
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Brett, you were absolutely right in saying 'all transactions within their scope must conform to all constraints...' ...

But the original question, seems to say that all SQL Statements are within the same UOW ...

Cheers
Sathyaram


Quote:
Originally posted by Brett Kaiser
Really? It's not a server setting?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On