Click here to Skip to main content
15,889,216 members
Home / Discussions / Database
   

Database

 
QuestionError with Jet 4.0 Pin
vilmer15-Dec-05 5:36
vilmer15-Dec-05 5:36 
AnswerRe: Error with Jet 4.0 Pin
albCode15-Dec-05 5:45
albCode15-Dec-05 5:45 
GeneralRe: Error with Jet 4.0 Pin
vilmer15-Dec-05 22:05
vilmer15-Dec-05 22:05 
GeneralRe: Error with Jet 4.0 Pin
Rob Graham16-Dec-05 13:26
Rob Graham16-Dec-05 13:26 
GeneralRe: Error with Jet 4.0 Pin
vilmer17-Dec-05 1:19
vilmer17-Dec-05 1:19 
QuestionDatabase migration tool Pin
AnonymousTwo15-Dec-05 4:40
AnonymousTwo15-Dec-05 4:40 
AnswerRe: Database migration tool Pin
-Dr_X-19-Dec-05 11:58
-Dr_X-19-Dec-05 11:58 
QuestionColumnOrder Pin
silverear15-Dec-05 2:36
silverear15-Dec-05 2:36 
Hallo,

I use the following VC++ Code with ADO to retrieve the column name of a given table. When I look in the debugger at the order of the columns I receive, it is different from the order in my table. How is it possible?

Does anybody has an idea how I can get my columns in the order they are in my table?


ADOX::Tables *pTables;
ADOX::_TablePtr pTable;
HRESULT hr = m_pCat->get_Tables(&pTables);
if (SUCCEEDED(hr)) {
int nTablesCount = pTables->GetCount(),
nInd = 0;
// Tabelle suchen.
pTable = pTables->GetItem(COleVariant(sKategorie));
//
ADOX::Columns *pColumns;
ADOX::_ColumnPtr pColumn;
pTable->get_Columns(&pColumns);
lColumnCount = pColumns->GetCount();
// Alle Spalten abarbeiten.
for (long lColumn = 0; lColumn < lColumnCount; lColumn++) {
pColumn = pColumns->GetItem(COleVariant((long)lColumn));
_bsColumnName = pColumn->GetName();
bsColumnName = _bsColumnName.GetBSTR();


Thanks in advance.

Patrick
AnswerRe: ColumnOrder Pin
toxcct15-Dec-05 3:07
toxcct15-Dec-05 3:07 
QuestionJOIN two objects from different sources Pin
serious-sam14-Dec-05 12:48
serious-sam14-Dec-05 12:48 
AnswerRe: JOIN two objects from different sources Pin
-Dr_X-19-Dec-05 12:00
-Dr_X-19-Dec-05 12:00 
QuestionMigrating from SQL Server 2000 to 2005 Pin
PrashantJ14-Dec-05 10:15
PrashantJ14-Dec-05 10:15 
AnswerRe: Migrating from SQL Server 2000 to 2005 Pin
albCode14-Dec-05 21:18
albCode14-Dec-05 21:18 
GeneralRe: Migrating from SQL Server 2000 to 2005 Pin
PrashantJ15-Dec-05 6:31
PrashantJ15-Dec-05 6:31 
QuestionDelete duplicate records Pin
munklefish14-Dec-05 6:34
munklefish14-Dec-05 6:34 
AnswerRe: Delete duplicate records Pin
enjoycrack14-Dec-05 7:13
enjoycrack14-Dec-05 7:13 
GeneralRe: Delete duplicate records Pin
munklefish14-Dec-05 11:46
munklefish14-Dec-05 11:46 
GeneralRe: Delete duplicate records Pin
enjoycrack14-Dec-05 11:49
enjoycrack14-Dec-05 11:49 
GeneralRe: Delete duplicate records Pin
munklefish14-Dec-05 11:54
munklefish14-Dec-05 11:54 
GeneralRe: Delete duplicate records Pin
enjoycrack14-Dec-05 14:53
enjoycrack14-Dec-05 14:53 
AnswerRe: Delete duplicate records Pin
albCode15-Dec-05 6:00
albCode15-Dec-05 6:00 
GeneralRe: Delete duplicate records Pin
munklefish15-Dec-05 6:15
munklefish15-Dec-05 6:15 
QuestionHelp please ... i don't know what is wrong!! Pin
UltraMAX2K514-Dec-05 5:05
UltraMAX2K514-Dec-05 5:05 
AnswerRe: Help please ... i don't know what is wrong!! Pin
Rob Graham14-Dec-05 5:22
Rob Graham14-Dec-05 5:22 
AnswerRe: Help please ... i don't know what is wrong!! Pin
agauga14-Dec-05 5:24
agauga14-Dec-05 5: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.