Click here to Skip to main content
15,917,731 members
Home / Discussions / Database
   

Database

 
GeneralRe: About ADO Connection ? Pin
Carlos Antollini18-Sep-01 9:44
Carlos Antollini18-Sep-01 9:44 
GeneralRe: About ADO Connection ? Pin
Mehrdad20-Sep-01 8:53
Mehrdad20-Sep-01 8:53 
QuestionXML Support in SQL Server - does ANYONE use it? Pin
Nick Blumhardt2-Sep-01 21:42
Nick Blumhardt2-Sep-01 21:42 
GeneralFirehose mode error Pin
Not Active1-Sep-01 17:56
mentorNot Active1-Sep-01 17:56 
GeneralADO Errors Pin
_Magnus_31-Aug-01 0:54
_Magnus_31-Aug-01 0:54 
GeneralRe: ADO Errors Pin
Rashid Thadha31-Aug-01 3:08
Rashid Thadha31-Aug-01 3:08 
GeneralRe: ADO Errors Pin
_Magnus_31-Aug-01 4:03
_Magnus_31-Aug-01 4:03 
GeneralRe: ADO Errors Pin
Rashid Thadha2-Sep-01 22:21
Rashid Thadha2-Sep-01 22:21 
use exception handling e.g.

try
{        
HRESULT hr = piCon->....;
if (FAILED(hr))
   _com_issue_error(hr);

}
catch(_com_error& e)
{
   CString sBuff = GetErrorDescription(e);
   AfxMessageBox(sBuff);        
   return;
}
catch(...)
{	
   AfxMessageBox("Unknown Error Occured");
   return;
}    	


CString GetErrorDescription(_com_error& e)
{
    _bstr_t bstrSource(e.Source());
    _bstr_t bstrDescription(e.Description());
    _TCHAR szTemp[1024];

    CString strInfo ;
    wsprintf(szTemp, _T("Message : %s\n"), e.ErrorMessage());
    strInfo = szTemp;
    wsprintf(szTemp, _T("Code : 0x%08lx\n"), e.Error());
    strInfo += szTemp;
    wsprintf(szTemp, _T("Source : %s\n"), bstrSource.length() ? (LPCTSTR)bstrSource : _T("null"));
    strInfo += szTemp;
    wsprintf(szTemp, _T("Description : %s\n"), bstrDescription.length() ? (LPCTSTR)bstrDescription : _T("null"));
    strInfo += szTemp;

    return strInfo;
}


Cool | :cool:
GeneralRe: ADO Errors Pin
_Magnus_2-Sep-01 23:50
_Magnus_2-Sep-01 23:50 
GeneralSending XML directly to a template using SQL Server & IIS Pin
Nick Blumhardt30-Aug-01 14:05
Nick Blumhardt30-Aug-01 14:05 
GeneralMDAC installation check Pin
John Smith30-Aug-01 0:47
John Smith30-Aug-01 0:47 
GeneralRe: MDAC installation check Pin
30-Aug-01 1:05
suss30-Aug-01 1:05 
GeneralRe: MDAC installation check Pin
Rashid Thadha30-Aug-01 1:09
Rashid Thadha30-Aug-01 1:09 
GeneralMulti-threading app using OLE DB calling into a shared Access DB Pin
Baz29-Aug-01 23:03
Baz29-Aug-01 23:03 
GeneralRe: Multi-threading app using OLE DB calling into a shared Access DB Pin
Rashid Thadha30-Aug-01 12:10
Rashid Thadha30-Aug-01 12:10 
GeneralRe: Multi-threading app using OLE DB calling into a shared Access DB Pin
Steen Krogsgaard3-Sep-01 23:25
Steen Krogsgaard3-Sep-01 23:25 
GeneralADO Refresh Method Problems (beginner) Pin
Bigge29-Aug-01 7:38
Bigge29-Aug-01 7:38 
GeneralRe: ADO Refresh Method Problems (beginner) Pin
Martin Bohring5-Sep-01 22:10
Martin Bohring5-Sep-01 22:10 
GeneralIdentity Columns Pin
27-Aug-01 8:45
suss27-Aug-01 8:45 
GeneralRe: Identity Columns Pin
Rashid Thadha30-Aug-01 12:14
Rashid Thadha30-Aug-01 12:14 
GeneralProblems with ODBC and MSACCESS Pin
Simone Giannecchini26-Aug-01 11:37
Simone Giannecchini26-Aug-01 11:37 
QuestionWhat are SQL or MSDE best practices for connections Pin
Rod Hamilton24-Aug-01 3:12
Rod Hamilton24-Aug-01 3:12 
GeneralAccess database!!!!! Pin
22-Aug-01 6:24
suss22-Aug-01 6:24 
GeneralRe: Access database!!!!! Pin
Anders Molin30-Aug-01 2:51
professionalAnders Molin30-Aug-01 2:51 
GeneralRe: Access database!!!!! Pin
Drawil6-Nov-01 20:19
Drawil6-Nov-01 20:19 

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.