Click here to Skip to main content
15,903,388 members
Home / Discussions / Database
   

Database

 
GeneralRe: Recover the Sql data..... Pin
imshally815-Aug-05 3:11
imshally815-Aug-05 3:11 
GeneralProblem when installing Microsoft SQL Server Desktop Engine Pin
MarcLaheij4-Aug-05 23:15
MarcLaheij4-Aug-05 23:15 
GeneralI want to use store procedure with table argument Pin
manish k patel4-Aug-05 19:37
manish k patel4-Aug-05 19:37 
GeneralRe: I want to use store procedure with table argument Pin
4-Aug-05 20:51
suss4-Aug-05 20:51 
GeneralNHibernate and DataGrid paging Pin
devvvy4-Aug-05 16:35
devvvy4-Aug-05 16:35 
GeneralHELP:identifying table name in a database Pin
girl_lash4-Aug-05 14:13
girl_lash4-Aug-05 14:13 
GeneralRe: HELP:identifying table name in a database Pin
Rob Graham4-Aug-05 16:39
Rob Graham4-Aug-05 16:39 
GeneralRecord-locking... Pin
Laffis4-Aug-05 4:39
Laffis4-Aug-05 4:39 
Hi
I am a newbee in db programming and I am now using MFC ODBC classes. (I do not use DAO as MSDN says we should not develop new project with it... is this true? D'Oh! | :doh: )

I see that default locking mechanism, which is optimistic locking, only occurs on Update(). This, however, means that in a multithreaded application, if thread-1 is going to do an AddNew, thread-2 is going to do an Edit, a switching context means that the 2 thread may race against each other hence causes conflict.

Currently what I do is creating a global mutex object for each table. Each db opration, e.g. an edit operation (including Open(), Edit(), Update()) must be guarded by this mutex object.

This gaurantees to fight off race condition. But does anyone know a better solution? Confused | :confused:

thx!
GeneralSQL Server 2005 Login Screen given error Pin
TariqMahmood4-Aug-05 0:09
TariqMahmood4-Aug-05 0:09 
GeneralSelecting Last Row of a Table Pin
Hassanur3-Aug-05 20:58
Hassanur3-Aug-05 20:58 
GeneralRe: Selecting Last Row of a Table Pin
Anonymous3-Aug-05 22:06
Anonymous3-Aug-05 22:06 
GeneralRe: Selecting Last Row of a Table Pin
Member 5569024-Aug-05 2:19
Member 5569024-Aug-05 2:19 
GeneralRe: Selecting Last Row of a Table Pin
Mandar Patankar4-Aug-05 8:33
Mandar Patankar4-Aug-05 8:33 
GeneralSelecting Last Row of a Table Pin
Hassanur3-Aug-05 20:50
Hassanur3-Aug-05 20:50 
GeneralRe: Selecting Last Row of a Table Pin
4-Aug-05 20:01
suss4-Aug-05 20:01 
GeneralStoring Different Language Data Pin
Anonymous3-Aug-05 19:00
Anonymous3-Aug-05 19:00 
GeneralRe: Storing Different Language Data Pin
Rob Graham4-Aug-05 4:39
Rob Graham4-Aug-05 4:39 
GeneralQuery Access db where date/time ... Pin
Laffis3-Aug-05 8:23
Laffis3-Aug-05 8:23 
GeneralRe: Query Access db where date/time ... Pin
Rob Graham3-Aug-05 9:07
Rob Graham3-Aug-05 9:07 
Generaltracking actions in sql Pin
WetRivrRat3-Aug-05 5:35
WetRivrRat3-Aug-05 5:35 
GeneralRe: tracking actions in sql Pin
Rob Graham3-Aug-05 6:20
Rob Graham3-Aug-05 6:20 
GeneralRe: tracking actions in sql Pin
WetRivrRat3-Aug-05 7:05
WetRivrRat3-Aug-05 7:05 
GeneralRe: tracking actions in sql Pin
Rob Graham3-Aug-05 7:15
Rob Graham3-Aug-05 7:15 
GeneralRe: tracking actions in sql Pin
Anonymous3-Aug-05 7:20
Anonymous3-Aug-05 7:20 
GeneralRe: tracking actions in sql Pin
WetRivrRat5-Aug-05 8:40
WetRivrRat5-Aug-05 8:40 

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.