Click here to Skip to main content
15,886,578 members
Home / Discussions / Database
   

Database

 
QuestionInconsistent Read issues Pin
tsramkumar9-Dec-05 9:31
tsramkumar9-Dec-05 9:31 
Questionadp.Fill method pooling issues Pin
Joshua Lunsford9-Dec-05 7:57
Joshua Lunsford9-Dec-05 7:57 
AnswerRe: adp.Fill method pooling issues Pin
Farhan Noor Qureshi9-Dec-05 12:00
Farhan Noor Qureshi9-Dec-05 12:00 
QuestionHelp - I'm a Novice - SQL Query Problem Pin
kabatlantafan79-Dec-05 5:20
kabatlantafan79-Dec-05 5:20 
AnswerRe: Help - I'm a Novice - SQL Query Problem Pin
miah alom9-Dec-05 5:58
miah alom9-Dec-05 5:58 
GeneralRe: Help - I'm a Novice - SQL Query Problem Pin
Farhan Noor Qureshi9-Dec-05 6:03
Farhan Noor Qureshi9-Dec-05 6:03 
GeneralRe: Help - I'm a Novice - SQL Query Problem Pin
miah alom9-Dec-05 6:03
miah alom9-Dec-05 6:03 
QuestionDiffering Results between Record binding (C++) and Collect method Pin
Stone Free9-Dec-05 3:42
Stone Free9-Dec-05 3:42 
Hi,

I have some code where the dataset being modified is the result of a JOIN between two tables. The key of the first table is also a foreign key of the second table. There will be situations where the fields from the second table will be NULL and others when the alternate key on table two will match the primary key of table one.

The record binding code works when the alternate key is not NULL, but when it and the second tables fields are NULL then the UpdateBatch gives the error "Row cannot be located for updating. Some values may have been changed since it was last read."

This is not true as this is a) not a multi-user system and b) nothing has changed.

I have dumped all the values in the record set - Value, OriginalValue and UnderlyingValue. All the fields of the second table are showing up as NULL for all of the value types.

All the other fields values are identical apart from Value for the attribute on the first table being updated.

I have status values for all the fields from the second table and they are all set to adFldNull.

If I then swap to using the Collect method then no error occurs.

The connection has the following properties:

Provider = oledb (Server is SQL Server 2000)
CursorLocation = adUseClient
IsolationLevel = adXactReadCommitted
ConnectionMode = adModeRead | adModeWrite | adModeShareDenyRead |
adModeShareDenyWrite | adModeShareExclusive

The recordset properties are:
CursorLocation = adUseClient
CursorType = adOpenStatic
LockType = adLockBatchOptimistic
MarshalOptions = adMarshalModifiedOnly

Any ideas other than swapping to using the Collect method?

QuestionCounter Pin
vuthaianh8-Dec-05 17:08
vuthaianh8-Dec-05 17:08 
AnswerRe: Counter Pin
Colin Angus Mackay8-Dec-05 20:22
Colin Angus Mackay8-Dec-05 20:22 
GeneralRe: Counter Pin
vuthaianh10-Dec-05 15:10
vuthaianh10-Dec-05 15:10 
GeneralRe: Counter Pin
Johny Ng12-Dec-05 8:20
Johny Ng12-Dec-05 8:20 
QuestionODBC rowset size Pin
jia20048-Dec-05 9:21
jia20048-Dec-05 9:21 
QuestionIs it possible to split a column in a GridView? Pin
kofler8-Dec-05 7:12
kofler8-Dec-05 7:12 
Questionhow to automatically fresh browser when the records are updated? Pin
vicky4578-Dec-05 6:23
vicky4578-Dec-05 6:23 
QuestionMoving DBs to new Server Pin
-Dr_X-8-Dec-05 5:27
-Dr_X-8-Dec-05 5:27 
AnswerRe: Moving DBs to new Server Pin
Daniel Santillanes8-Dec-05 7:21
professionalDaniel Santillanes8-Dec-05 7:21 
QuestionStored Procedure Pin
ayuba asia7-Dec-05 22:34
ayuba asia7-Dec-05 22:34 
AnswerRe: Stored Procedure Pin
Colin Angus Mackay7-Dec-05 23:58
Colin Angus Mackay7-Dec-05 23:58 
AnswerRe: Stored Procedure Pin
Daniel Santillanes8-Dec-05 7:17
professionalDaniel Santillanes8-Dec-05 7:17 
GeneralRe: Stored Procedure Pin
Colin Angus Mackay8-Dec-05 9:11
Colin Angus Mackay8-Dec-05 9:11 
JokeRe: Stored Procedure Pin
Daniel Santillanes8-Dec-05 13:56
professionalDaniel Santillanes8-Dec-05 13:56 
Questionado.net odbc insert problem Pin
pgfrancis17-Dec-05 16:24
pgfrancis17-Dec-05 16:24 
AnswerRe: ado.net odbc insert problem Pin
Colin Angus Mackay8-Dec-05 0:04
Colin Angus Mackay8-Dec-05 0:04 
GeneralRe: ado.net odbc insert problem Pin
pgfrancis18-Dec-05 9:11
pgfrancis18-Dec-05 9:11 

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.