Click here to Skip to main content
15,921,203 members
Home / Discussions / Database
   

Database

 
GeneralSELECT and UPDATE in one statement Pin
iluha14-Apr-04 4:39
iluha14-Apr-04 4:39 
GeneralRe: SELECT and UPDATE in one statement Pin
Janya26-Apr-04 14:44
Janya26-Apr-04 14:44 
GeneralProblem with table format when pulled from SQL Server to Sql Server CE, using RDA Pull Method Pin
JustChiLLin14-Apr-04 1:13
JustChiLLin14-Apr-04 1:13 
Generalthe problem of @@TRANCOUNT--how to eliminate the no.266 error Pin
williamchou13-Apr-04 23:33
williamchou13-Apr-04 23:33 
GeneralRe: the problem of @@TRANCOUNT--how to eliminate the no.266 error Pin
Mike Dimmick14-Apr-04 5:28
Mike Dimmick14-Apr-04 5:28 
GeneralSET DATEFORMAT Pin
monrobot1312-Apr-04 19:13
monrobot1312-Apr-04 19:13 
GeneralRe: SET DATEFORMAT Pin
Mike Dimmick13-Apr-04 4:05
Mike Dimmick13-Apr-04 4:05 
GeneralRe: SET DATEFORMAT Pin
monrobot1313-Apr-04 15:20
monrobot1313-Apr-04 15:20 
First, thanks for the reply Mike. Second, I'm now taking your advice and I'm trying to enter an ISO format date, but everytime I try to set the field value I'm getting a _com_error thrown. The error is being thrown by the put_Value function in the msado15.tli file:
inline void Field20::PutValue ( const _variant_t & pvar ) {
    HRESULT _hr = put_Value(pvar);  <-- Error returned from put_Value
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));  <-- exeception thrown here
}
The debugger is telling me that it's an "IDispatch error #3105", but I can't find any information on this error anywhere. The _com_error has a filed called __vfptr, which seems to have a value of 0x00469707 _com_error::`scalar deleting destructor'(unsigned int), but I don't know if that's related or not. Some of the values I'm passing in are "2003123182300", "20040104124857" these are date and time values. These are the only values I'm getting an exception on and I can't figure out what's wrong. I'm using ADO classes here[^]. Any help is very appreciated as I'm completely dumbfounded by this. If you'd like the code I'm using just let me know. Thanks!

[UPDATE]
Well I just tried manually adding a value like "2003123182300" to the database and received a "Syntax error converting datetime from character string." error. So I guess that's probably why I'm getting the exception, but if I can't add a value like that how do I add an ISO date/time value to the database?
[/UPDATE]

- Aaron
GeneralFormat Columns Pin
monrobot138-Apr-04 16:42
monrobot138-Apr-04 16:42 
GeneralRe: Format Columns Pin
Colin Angus Mackay9-Apr-04 0:12
Colin Angus Mackay9-Apr-04 0:12 
GeneralRe: Format Columns Pin
monrobot139-Apr-04 6:13
monrobot139-Apr-04 6:13 
GeneralMSDE Deployment Pin
betterc8-Apr-04 5:50
betterc8-Apr-04 5:50 
GeneralRe: MSDE Deployment Pin
Sarvesvara (BVKS) Dasa13-Apr-04 18:31
Sarvesvara (BVKS) Dasa13-Apr-04 18:31 
GeneralRe: MSDE Deployment Pin
betterc14-Apr-04 0:58
betterc14-Apr-04 0:58 
GeneralRe: MSDE Deployment Pin
Sarvesvara (BVKS) Dasa14-Apr-04 1:03
Sarvesvara (BVKS) Dasa14-Apr-04 1:03 
GeneralRe: MSDE Deployment Pin
betterc14-Apr-04 1:03
betterc14-Apr-04 1:03 
GeneralRe: MSDE Deployment Pin
Sarvesvara (BVKS) Dasa14-Apr-04 1:06
Sarvesvara (BVKS) Dasa14-Apr-04 1:06 
GeneralRe: MSDE Deployment Pin
betterc14-Apr-04 1:08
betterc14-Apr-04 1:08 
GeneralRe: MSDE Deployment Pin
Sarvesvara (BVKS) Dasa14-Apr-04 1:13
Sarvesvara (BVKS) Dasa14-Apr-04 1:13 
GeneralRe: MSDE Deployment Pin
betterc14-Apr-04 1:21
betterc14-Apr-04 1:21 
GeneralRe: MSDE Deployment Pin
Sarvesvara (BVKS) Dasa14-Apr-04 1:39
Sarvesvara (BVKS) Dasa14-Apr-04 1:39 
GeneralRe: MSDE Deployment Pin
betterc14-Apr-04 13:51
betterc14-Apr-04 13:51 
GeneralRe: MSDE Deployment Pin
Sarvesvara (BVKS) Dasa14-Apr-04 18:45
Sarvesvara (BVKS) Dasa14-Apr-04 18:45 
GeneralADOX &amp; ADO Pin
Shenthil7-Apr-04 19:18
Shenthil7-Apr-04 19:18 
GeneralRe: ADOX &amp; ADO Pin
Steve S8-Apr-04 1:08
Steve S8-Apr-04 1:08 

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.