Click here to Skip to main content
15,900,325 members
Home / Discussions / Database
   

Database

 
AnswerRe: High importance: How to map the data tables in a remote database to local memory? Pin
Colin Angus Mackay10-Mar-06 6:09
Colin Angus Mackay10-Mar-06 6:09 
GeneralRe: High importance: How to map the data tables in a remote database to local memory? Pin
zhaoyu16210-Mar-06 14:57
zhaoyu16210-Mar-06 14:57 
Question[MySQL + .net] Getting SQL query from MySqlCommand object Pin
Distinctive9-Mar-06 12:34
Distinctive9-Mar-06 12:34 
AnswerRe: [MySQL + .net] Getting SQL query from MySqlCommand object Pin
Colin Angus Mackay10-Mar-06 6:20
Colin Angus Mackay10-Mar-06 6:20 
GeneralRe: [MySQL + .net] Getting SQL query from MySqlCommand object Pin
Distinctive10-Mar-06 11:33
Distinctive10-Mar-06 11:33 
QuestionUpdating a record from a table and returning the updated record. Pin
PeteConc9-Mar-06 8:04
PeteConc9-Mar-06 8:04 
AnswerRe: Updating a record from a table and returning the updated record. Pin
Daniel Santillanes9-Mar-06 8:30
professionalDaniel Santillanes9-Mar-06 8:30 
GeneralRe: Updating a record from a table and returning the updated record. Pin
PeteConc10-Mar-06 0:24
PeteConc10-Mar-06 0:24 
Actually that's not exactly what I wanted. The example I gave was not complete. Here's what I want to do:

- Select @Res = max(Y) From table1 where X=0
- Update table1 set X=1 where Y = @Res

I want to get the max record where X=0 and then update that record. The problem is that there may be two processes executing this stored procedure at the same time.
Thus, they may execute the 'select' part at the same time, get the same 'max(Y)' and then update the same record. That's what I wnat to avoid. I need to assure that between the 'select' and the 'update' there is no process accessing the same record in the table. This is a concurrency problem.


QuestionRetrieve data randomly from SQL Pin
Armando_Ramirez9-Mar-06 6:55
Armando_Ramirez9-Mar-06 6:55 
Questionnet 2 Pin
papa19809-Mar-06 5:38
papa19809-Mar-06 5:38 
QuestionQuick run-down on directories 80, 90, msql.1 vs mssql.2 mssql.3 Pin
LuluSailor9-Mar-06 4:13
LuluSailor9-Mar-06 4:13 
AnswerRe: Quick run-down on directories 80, 90, msql.1 vs mssql.2 mssql.3 Pin
Mike Dimmick9-Mar-06 11:46
Mike Dimmick9-Mar-06 11:46 
QuestionQuestion Pin
Hamid_RT9-Mar-06 3:59
Hamid_RT9-Mar-06 3:59 
AnswerRe: Question Pin
shm5314-Mar-06 7:19
shm5314-Mar-06 7:19 
GeneralRe: Question Pin
Hamid_RT14-Mar-06 17:18
Hamid_RT14-Mar-06 17:18 
QuestionSQL Error Handling Pin
Illegal Operation9-Mar-06 1:14
Illegal Operation9-Mar-06 1:14 
AnswerRe: SQL Error Handling Pin
Michael Potter9-Mar-06 3:23
Michael Potter9-Mar-06 3:23 
GeneralRe: SQL Error Handling Pin
Illegal Operation9-Mar-06 3:31
Illegal Operation9-Mar-06 3:31 
GeneralRe: SQL Error Handling Pin
Michael Potter9-Mar-06 3:53
Michael Potter9-Mar-06 3:53 
QuestionGetting the parent row in a master-detail DataGridView Setup Pin
Ed.Poore9-Mar-06 1:00
Ed.Poore9-Mar-06 1:00 
AnswerRe: Getting the parent row in a master-detail DataGridView Setup Pin
arunjothi9-Mar-06 1:19
arunjothi9-Mar-06 1:19 
GeneralRe: Getting the parent row in a master-detail DataGridView Setup Pin
Ed.Poore9-Mar-06 1:41
Ed.Poore9-Mar-06 1:41 
QuestionScript table data Pin
Paul Watson9-Mar-06 0:36
sitebuilderPaul Watson9-Mar-06 0:36 
AnswerRe: Script table data Pin
Ed.Poore9-Mar-06 1:03
Ed.Poore9-Mar-06 1:03 
QuestionPC/PPC Sync Pin
Willem_Le_Roux8-Mar-06 22:15
Willem_Le_Roux8-Mar-06 22:15 

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.