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

Database

 
GeneralRe: MSDE US Date format problem Pin
hugonz18-Dec-04 11:19
hugonz18-Dec-04 11:19 
GeneralRe: MSDE US Date format problem Pin
Jon Hulatt19-Dec-04 22:51
Jon Hulatt19-Dec-04 22:51 
GeneralRe: MSDE US Date format problem Pin
hugonz21-Dec-04 18:36
hugonz21-Dec-04 18:36 
GeneralInstalling Database Pin
abo el ror17-Dec-04 14:29
abo el ror17-Dec-04 14:29 
GeneralRe: Installing Database Pin
Colin Angus Mackay17-Dec-04 15:28
Colin Angus Mackay17-Dec-04 15:28 
GeneralRe: Installing Database Pin
Javier Lozano17-Dec-04 17:58
Javier Lozano17-Dec-04 17:58 
GeneralMore on CRecordset Instances Pin
Chris Meech17-Dec-04 8:22
Chris Meech17-Dec-04 8:22 
GeneralRe: More on CRecordset Instances Pin
Mike Dimmick17-Dec-04 12:33
Mike Dimmick17-Dec-04 12:33 
rs.GetFieldValue turns (eventually) into a call to SQLGetData. The documentation for this function says that if you get state = 24000, one of the following is true (this is simply copied from the documentation):
  • (DM) The function was called without first calling SQLFetch or SQLFetchScroll to position the cursor on the row of data required.
  • (DM) The StatementHandle was in an executed state, but no result set was associated with the StatementHandle.
  • A cursor was open on the StatementHandle and SQLFetch or SQLFetchScroll had been called, but the cursor was positioned before the start of the result set or after the end of the result set.
It can't be the first, because CRecordset::Open calls MoveNext before returning. So either the database didn't return a resultset (which should have been caught by Open) or no rows were returned - but this should have led to IsEOF returning FALSE.

Why this should work for a table but not a view I don't know. What ODBC driver are you using? For which database software?

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: More on CRecordset Instances Pin
Chris Meech21-Dec-04 2:00
Chris Meech21-Dec-04 2:00 
GeneralRe: More on CRecordset Instances Pin
Chris Meech21-Dec-04 4:32
Chris Meech21-Dec-04 4:32 
GeneralRe: Category Pin
Brendan Vogt17-Dec-04 2:45
Brendan Vogt17-Dec-04 2:45 
GeneralCategory Pin
Brendan Vogt17-Dec-04 0:13
Brendan Vogt17-Dec-04 0:13 
GeneralRe: Category Pin
Colin Angus Mackay17-Dec-04 2:13
Colin Angus Mackay17-Dec-04 2:13 
QuestionUNC required ??? Pin
Vector716-Dec-04 23:39
Vector716-Dec-04 23:39 
AnswerRe: UNC required ??? Pin
Colin Angus Mackay17-Dec-04 2:15
Colin Angus Mackay17-Dec-04 2:15 
AnswerRe: UNC required ??? Pin
Jon Hulatt17-Dec-04 3:50
Jon Hulatt17-Dec-04 3:50 
GeneralRe: UNC required ??? Pin
Colin Angus Mackay17-Dec-04 4:11
Colin Angus Mackay17-Dec-04 4:11 
GeneralMSDE Inquiry Pin
Member 150205616-Dec-04 21:49
Member 150205616-Dec-04 21:49 
GeneralRe: MSDE Inquiry Pin
Colin Angus Mackay17-Dec-04 2:20
Colin Angus Mackay17-Dec-04 2:20 
GeneralRe: MSDE Inquiry Pin
Member 150205617-Dec-04 13:29
Member 150205617-Dec-04 13:29 
GeneralRe: MSDE Inquiry Pin
Colin Angus Mackay17-Dec-04 13:32
Colin Angus Mackay17-Dec-04 13:32 
GeneralRe: MSDE Inquiry Pin
Rob Graham24-Dec-04 6:08
Rob Graham24-Dec-04 6:08 
GeneralListView Control Pin
RogerDodge16-Dec-04 21:41
RogerDodge16-Dec-04 21:41 
GeneralSQL Syntax Error Pin
Suresh Prasad16-Dec-04 19:48
Suresh Prasad16-Dec-04 19:48 
GeneralRe: SQL Syntax Error Pin
Colin Angus Mackay17-Dec-04 2:24
Colin Angus Mackay17-Dec-04 2:24 

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.