Click here to Skip to main content
15,914,074 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to debug a storeprocedure in sql server 2000 and 2005? Pin
PrashantJ22-Dec-06 9:08
PrashantJ22-Dec-06 9:08 
QuestionSQL Pin
Bravoone_200621-Dec-06 23:02
Bravoone_200621-Dec-06 23:02 
AnswerRe: SQL Pin
Christian Graus21-Dec-06 23:26
protectorChristian Graus21-Dec-06 23:26 
AnswerRe: SQL Pin
Pete O'Hanlon21-Dec-06 23:28
mvePete O'Hanlon21-Dec-06 23:28 
QuestionRe: SQL Pin
Bravoone_200621-Dec-06 23:34
Bravoone_200621-Dec-06 23:34 
AnswerSQL Pin
Frank Kerrigan21-Dec-06 23:38
Frank Kerrigan21-Dec-06 23:38 
QuestionRe: SQL Pin
Bravoone_200622-Dec-06 0:06
Bravoone_200622-Dec-06 0:06 
QuestionIDispatch error #3108 Pin
SL55521-Dec-06 21:20
SL55521-Dec-06 21:20 
Hello colleagues,i use a database (Access):
<br />
.................................................................<br />
void Db::Next(ADODB::_RecordsetPtr& rs){<br />
    try{<br />
        rs->MoveNext();<br />
    }catch(_com_error e){<br />
        _bstr_t bstrError(e.ErrorMessage());<br />
        CString strError=(TCHAR*)bstrError;<br />
        AfxMessageBox(strError);<br />
    }<br />
}<br />
<br />
void Db::Last(ADODB::_RecordsetPtr& rs){<br />
    try{<br />
        rs->MoveLast();<br />
    }catch(_com_error e){<br />
        _bstr_t bstrError(e.ErrorMessage());<br />
        CString strError=(TCHAR*)bstrError;<br />
        AfxMessageBox(strError);<br />
    }<br />
}<br />
void Db::First(ADODB::_RecordsetPtr& rs){<br />
    try{<br />
        rs->MoveFirst();<br />
    }catch(_com_error e){<br />
        _bstr_t bstrError(e.ErrorMessage());<br />
        CString strError=(TCHAR*)bstrError;<br />
        AfxMessageBox(strError);<br />
    }<br />
}<br />
<br />
bool Db::IsEoF(ADODB::_RecordsetPtr &rs){<br />
     try{<br />
         return !!rs->GetEOF();<br />
    }catch(_com_error e){<br />
        _bstr_t bstrError(e.ErrorMessage());<br />
        CString strError=(TCHAR*)bstrError;<br />
        AfxMessageBox(strError);<br />
        return false;<br />
    }<br />
}<br />
...................................................<br />
<br />
<br />

on application of metod Last,
<br />
.....................................................................<br />
 CString query( FormatString(TEXT("select * from payment_info") ));<br />
    ADODB::_RecordsetPtr rs = db.Execute(query);<br />
     if (!rs->EOF) {<br />
      db.Last(rs);<br />
.....................................................................<br />

error IDispatch error #3108. The other metod all ok.
AnswerRe: IDispatch error #3108 Pin
Pete O'Hanlon21-Dec-06 23:34
mvePete O'Hanlon21-Dec-06 23:34 
GeneralRe: IDispatch error #3108 Pin
SL55522-Dec-06 3:04
SL55522-Dec-06 3:04 
QuestionJDBC + MySQL Pin
NightFox50021-Dec-06 20:42
NightFox50021-Dec-06 20:42 
AnswerRe: JDBC + MySQL Pin
Colin Angus Mackay21-Dec-06 23:11
Colin Angus Mackay21-Dec-06 23:11 
AnswerRe: JDBC + MySQL Pin
Pete O'Hanlon22-Dec-06 2:00
mvePete O'Hanlon22-Dec-06 2:00 
QuestionCopying column with OLE Object datatype? Pin
kbalias21-Dec-06 18:36
kbalias21-Dec-06 18:36 
AnswerRe: Copying column with OLE Object datatype? Pin
Colin Angus Mackay21-Dec-06 23:10
Colin Angus Mackay21-Dec-06 23:10 
QuestionConnection Issue While connecting to SqlServer 2000 from ASP.NET 2.0 Pin
nesaraja21-Dec-06 18:29
nesaraja21-Dec-06 18:29 
AnswerRe: Connection Issue While connecting to SqlServer 2000 from ASP.NET 2.0 Pin
Colin Angus Mackay21-Dec-06 23:08
Colin Angus Mackay21-Dec-06 23:08 
QuestionDeleted row outside program problem. Pin
Tomy140221-Dec-06 15:43
Tomy140221-Dec-06 15:43 
AnswerRe: Deleted row outside program problem. Pin
Frank Kerrigan21-Dec-06 23:43
Frank Kerrigan21-Dec-06 23:43 
GeneralRe: Deleted row outside program problem. Pin
Tomy140222-Dec-06 15:21
Tomy140222-Dec-06 15:21 
QuestionHow do you quote parameters for an Oracle Select statement string when the parameter contains a quote? Pin
howardjr21-Dec-06 12:43
howardjr21-Dec-06 12:43 
AnswerRe: How do you quote parameters for an Oracle Select statement string when the parameter contains a quote? Pin
Colin Angus Mackay21-Dec-06 13:24
Colin Angus Mackay21-Dec-06 13:24 
GeneralRe: How do you quote parameters for an Oracle Select statement string when the parameter contains a quote? Pin
howardjr21-Dec-06 16:49
howardjr21-Dec-06 16:49 
GeneralRe: How do you quote parameters for an Oracle Select statement string when the parameter contains a quote? Pin
Mairaaj Khan21-Dec-06 21:17
professionalMairaaj Khan21-Dec-06 21:17 
GeneralRe: How do you quote parameters for an Oracle Select statement string when the parameter contains a quote? Pin
Colin Angus Mackay21-Dec-06 23:05
Colin Angus Mackay21-Dec-06 23:05 

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.