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

Database

 
AnswerRe: Need help with updating columns Pin
Klaus-Werner Konrad25-Mar-11 7:23
Klaus-Werner Konrad25-Mar-11 7:23 
QuestionCapture error return by MS Sql Pin
Hum Dum22-Mar-11 20:28
Hum Dum22-Mar-11 20:28 
AnswerRe: Capture error return by MS Sql Pin
Wendelius22-Mar-11 21:11
mentorWendelius22-Mar-11 21:11 
GeneralRe: Capture error return by MS Sql Pin
Hum Dum22-Mar-11 21:29
Hum Dum22-Mar-11 21:29 
GeneralRe: Capture error return by MS Sql Pin
Wendelius22-Mar-11 21:45
mentorWendelius22-Mar-11 21:45 
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 
Hi,

I am trying to implement a dialog for updating some data in a DB. The OK button should actually save the data to the DB, while the Cancel button should discard the changes. The problem is, I need to be able to read the changed but not yet committed data within the dialog. I have read much information about transactions, isolation levels etc. and if I understand it correctly, the only way to achieve this is to wrap all the changes in a single transaction and use the READUNCOMMITED isolation level for it. Then in the OK button handler I'd just commit the transaction and in the Cancel button handler I'd call rollback.
However, since I am using the SQLite.NET library, I am only able to use READCOMMITTED or SERIALIZABLE levels. What's more, in some other piece of software I have which uses MS Access database and solves exactly the same problem the transaction is started with the READCOMMITED isolation level and everything works as intended. That really puzzles me. D'Oh! | :doh:

Do you have any suggestions/advice for this kind of problem?
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 
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 

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.