Article View: borland.public.cppbuilder.database.ado
Article #2316Re: Create a new table
From: Viatcheslav V. Vassiliev
Date: Mon, 18 Aug 2003 06:46
Date: Mon, 18 Aug 2003 06:46
20 lines
1736 bytes
1736 bytes
> Form1->Catalog.Exec(Function("Create") <<
> ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Tests.DBF"));
May be Data Source=Tests.mdb? With this code you will create .mdb file if
Catalog is ADOX catalog object.
> How do I create a table in the database that I just created..
Can you use ADO? If so, just connect to this database with ADO connection
object and execute SQL DDL statement such as "CREATE Table [Tests] ([SID]
Int Primary Key, [First] VarChar(15))"
This will be table in MS Access, not dbf file or table.
----------------------------------------------------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server, MS Jet (MS Access)
and Interbase (through OLEDB) databases.
Technical Details
Message-ID:
<3f407796$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f3fde36$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,5ff793e5206e9a54 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-08-18 00:10:04 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3f3fde36$1@newsgroups.borland.com> Subject: Re: Create a new table Date: Mon, 18 Aug 2003 10:46:38 +0400 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.247.201.57 Message-ID: <3f407796$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061189526 213.247.201.57 (17 Aug 2003 23:52:06 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail