Click here to Skip to main content
15,916,842 members
Home / Discussions / Database
   

Database

 
GeneralRe: Access 2000 Pin
CodeGuy22-Aug-01 12:18
CodeGuy22-Aug-01 12:18 
GeneralDuplicating (copying) a table in SQL Server database Pin
User 988520-Aug-01 13:13
User 988520-Aug-01 13:13 
GeneralRe: Duplicating (copying) a table in SQL Server database Pin
Chanceamatic22-Aug-01 14:38
Chanceamatic22-Aug-01 14:38 
GeneralADO bug in VC++ 6 SP5 + Processor Pack Pin
John M. Drescher15-Aug-01 18:09
John M. Drescher15-Aug-01 18:09 
GeneralRe: ADO bug in VC++ 6 SP5 + Processor Pack Pin
Rashid Thadha16-Aug-01 22:31
Rashid Thadha16-Aug-01 22:31 
QuestionReading Fixed Width Files with ADO? Pin
Pete Bassett14-Aug-01 0:54
Pete Bassett14-Aug-01 0:54 
GeneralField Existence with ADO Pin
10-Aug-01 4:15
suss10-Aug-01 4:15 
GeneralRe: Field Existence with ADO Pin
Rashid Thadha10-Aug-01 6:22
Rashid Thadha10-Aug-01 6:22 
use the FieldsPtr class

e.g.

FieldsPtr ptrFields = NULL;
FieldPtr ptrField = NULL;

// assign the Fields that we have from the recordset
ptrFields = m_pRS->Fields;
int nCols = ptrFields->Count; 

FieldPtr ptrField = NULL;
_variant_t vCol((long)-1);
for (int i = 0; i < nCols; i++)
{
   vCol.lVal = i;
   HRESULT hr = ptrFields->get_Item(vCol, &ptrField);
   if(FAILED(hr))
      _com_issue_error(hr);
            
   // now check if the field exist
   if ((LPCSTR)ptrField->Name == "My Field")
   {
      // Do Something
   }
}




Cool | :cool:
Questionselect * from multiple tables?????? Pin
martinsz10-Aug-01 3:45
martinsz10-Aug-01 3:45 
AnswerRe: select * from multiple tables?????? Pin
Carlos Antollini10-Aug-01 4:01
Carlos Antollini10-Aug-01 4:01 
GeneralRe: select * from multiple tables?????? Pin
martinsz10-Aug-01 4:53
martinsz10-Aug-01 4:53 
GeneralRe: select * from multiple tables?????? Pin
Carlos Antollini10-Aug-01 5:19
Carlos Antollini10-Aug-01 5:19 
GeneralRe: select * from multiple tables?????? Pin
martinsz13-Aug-01 4:24
martinsz13-Aug-01 4:24 
GeneralRe: select * from multiple tables?????? Pin
Carlos Antollini13-Aug-01 6:13
Carlos Antollini13-Aug-01 6:13 
GeneralMS Access Field List Disappeared Pin
Douglas Troy9-Aug-01 3:07
Douglas Troy9-Aug-01 3:07 
GeneralOLE DB/ATL guides worthless Pin
Bigge8-Aug-01 23:17
Bigge8-Aug-01 23:17 
GeneralRe: OLE DB/ATL guides worthless Pin
Not Active9-Aug-01 4:45
mentorNot Active9-Aug-01 4:45 
GeneralATL OLEDB Template Insert Pin
Brad Bruce8-Aug-01 16:11
Brad Bruce8-Aug-01 16:11 
GeneralRe: ATL OLEDB Template Insert Pin
Not Active8-Aug-01 16:34
mentorNot Active8-Aug-01 16:34 
GeneralRe: ATL OLEDB Template Insert Pin
Brad Bruce9-Aug-01 12:09
Brad Bruce9-Aug-01 12:09 
GeneralSelect DISTINCT and CRecordSet Pin
Derek Price8-Aug-01 12:08
Derek Price8-Aug-01 12:08 
GeneralRe: Select DISTINCT and CRecordSet Pin
Carlos Antollini8-Aug-01 12:35
Carlos Antollini8-Aug-01 12:35 
GeneralRe: Select DISTINCT and CRecordSet Pin
Derek Price8-Aug-01 12:38
Derek Price8-Aug-01 12:38 
GeneralRe: Select DISTINCT and CRecordSet Pin
8-Aug-01 14:27
suss8-Aug-01 14:27 
GeneralRe: Select DISTINCT and CRecordSet Pin
Carlos Antollini9-Aug-01 4:10
Carlos Antollini9-Aug-01 4:10 

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.