🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1462

Re: Create ADO Table

#1462
From: Mark Guerrieri
Date: Wed, 23 Jun 2004 21:01
42 lines
2269 bytes
Not sure about ADO, but you can do it with TClientDataSet, which is not part
of the BDE.

Mark

"kev" <kev@isp.com> wrote in message
news:40d98b79$1@newsgroups.borland.com...
> I am currently using a TTable, creating the fields dynamically at runtime
> and using it to temporarily old data from ADO datasets.  This requires me
to
> install the BDE on the target system.  I would like to avoid having to be
> tied to BDE if at all possible.  Is there a way for me to do so using one
of
> the ADO components?  I have tried several approaches with no success. A
> sample of my current TTable code is below.  Thanks for any help.
>
>     Table1->Active = false; // The Table component must not be active
>
>     Table1->DatabaseName = "BCDEMOS";
>     Table1->TableType = ttParadox;
>
>     Table1->TableName = "MyTempTable";
>
>     // describe the fields in the table
>     Table1->FieldDefs->Clear();
>
>     TFieldDef *pNewDef = Table1->FieldDefs->AddFieldDef();
>     pNewDef->Name = "Location.";
>     pNewDef->DataType = ftString;
>     pNewDef->Required = false;
>     pNewDef->Size = 8;
>     .
>     .
>     .
>
>     // Now that we have specified what we want, create the table
>     Table1->CreateTable();
>
>     Table1->Active = true; // The Table component must not be active
>
>
>
Technical Details
Message-ID: <40d9efb3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40d98b79$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,9588410ac5d71a1a
X-Google-Attributes: gid10698b,public
Reply-To: "Mark Guerrieri" <mguerrieri@cmsgrp.com>
From: "Mark Guerrieri" <mguerrieri@cmsgrp.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40d98b79$1@newsgroups.borland.com>
Subject: Re: Create ADO Table
Date: Wed, 23 Jun 2004 17:01:38 -0400
Lines: 44
Organization: Creative Marketing Strategies
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 66.200.143.50
Message-ID: <40d9efb3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088024499 66.200.143.50 (23 Jun 2004 14:01:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail