Click here to Skip to main content
15,895,011 members
Home / Discussions / Database
   

Database

 
GeneralRe: Capture error return by MS Sql Pin
Hum Dum22-Mar-11 22:51
Hum Dum22-Mar-11 22:51 
GeneralRe: Capture error return by MS Sql Pin
Wendelius22-Mar-11 23:19
mentorWendelius22-Mar-11 23:19 
QuestionHow to implement a dialog for updating DB with a Cancel (rollback) option Pin
crypto_rsa22-Mar-11 0:47
crypto_rsa22-Mar-11 0:47 
AnswerRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
Johan Hakkesteegt22-Mar-11 1:01
Johan Hakkesteegt22-Mar-11 1:01 
GeneralRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
crypto_rsa22-Mar-11 1:15
crypto_rsa22-Mar-11 1:15 
GeneralRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
Johan Hakkesteegt22-Mar-11 1:38
Johan Hakkesteegt22-Mar-11 1:38 
GeneralRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
crypto_rsa22-Mar-11 1:59
crypto_rsa22-Mar-11 1:59 
AnswerRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
Wendelius22-Mar-11 2:06
mentorWendelius22-Mar-11 2:06 
The first rule of transactions is: Never have a conversation with the user while a transaction is active!

So what you should do is to ask all the necessary questions before you start the db operations, perhaps show what's in the database now and how it's going to be changed etc. After the last yes/no question, then do all the operations at once and if everything goes fine, commit otherwise rollback.

In my opinion (I know many disagree) Read uncommitted should be banned for good. In a well designed system there's no need for RU isolation level and as you mentioned many of the database products don't even support it (inlcude Oracle in your list).

Having UI conversations etc while you have placed locks in the database typically causes prolonged transactions, slows the system down and decreases parallelism because of locking issues.
The need to optimize rises from a bad design.My articles[^]

QuestionHow to spread traffic on a table Pin
Johan Hakkesteegt21-Mar-11 23:24
Johan Hakkesteegt21-Mar-11 23:24 
AnswerRe: How to spread traffic on a table Pin
Corporal Agarn22-Mar-11 1:06
professionalCorporal Agarn22-Mar-11 1:06 
GeneralRe: How to spread traffic on a table Pin
Johan Hakkesteegt22-Mar-11 1:23
Johan Hakkesteegt22-Mar-11 1:23 
GeneralRe: How to spread traffic on a table Pin
Corporal Agarn22-Mar-11 1:27
professionalCorporal Agarn22-Mar-11 1:27 
GeneralRe: How to spread traffic on a table Pin
Johan Hakkesteegt22-Mar-11 2:11
Johan Hakkesteegt22-Mar-11 2:11 
AnswerRe: How to spread traffic on a table Pin
Mycroft Holmes22-Mar-11 1:32
professionalMycroft Holmes22-Mar-11 1:32 
GeneralRe: How to spread traffic on a table Pin
Johan Hakkesteegt22-Mar-11 1:55
Johan Hakkesteegt22-Mar-11 1:55 
AnswerRe: How to spread traffic on a table [modified] Pin
Jörgen Andersson22-Mar-11 1:54
professionalJörgen Andersson22-Mar-11 1:54 
GeneralRe: How to spread traffic on a table Pin
Johan Hakkesteegt22-Mar-11 2:07
Johan Hakkesteegt22-Mar-11 2:07 
GeneralRe: How to spread traffic on a table Pin
Jörgen Andersson22-Mar-11 6:15
professionalJörgen Andersson22-Mar-11 6:15 
AnswerRe: How to spread traffic on a table Pin
Wendelius22-Mar-11 1:55
mentorWendelius22-Mar-11 1:55 
GeneralRe: How to spread traffic on a table Pin
Johan Hakkesteegt22-Mar-11 2:01
Johan Hakkesteegt22-Mar-11 2:01 
GeneralRe: How to spread traffic on a table Pin
Wendelius22-Mar-11 2:10
mentorWendelius22-Mar-11 2:10 
GeneralRe: How to spread traffic on a table Pin
Johan Hakkesteegt22-Mar-11 3:33
Johan Hakkesteegt22-Mar-11 3:33 
GeneralRe: How to spread traffic on a table Pin
Wendelius22-Mar-11 5:07
mentorWendelius22-Mar-11 5:07 
GeneralRe: How to spread traffic on a table Pin
Johan Hakkesteegt22-Mar-11 21:22
Johan Hakkesteegt22-Mar-11 21:22 
GeneralRe: How to spread traffic on a table Pin
Wendelius22-Mar-11 21:47
mentorWendelius22-Mar-11 21:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.