Article View: borland.public.cppbuilder.database.ado
Article #5734Re: Creating an MS Access 2000 database at runtime
From: ziggurat
Date: Tue, 27 Feb 2001 08:53
Date: Tue, 27 Feb 2001 08:53
100 lines
4418 bytes
4418 bytes
This is a multi-part message in MIME format.
------=_NextPart_000_0057_01C0A0AB.95D770F0
Content-Type: text/plain;
charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable
You can not do that with ADO but with DAO.
I dont know BC++Builder yet , but with VC++, you can code like this;
Regards,
bulentozkir@hotmail.com
CDaoDatabase daodb; =20
CString szdbPath =3D "C:\\temp\\ziggurat.mdb";
try
{
daodb.Create(szdbPath,dbLangGeneral); //by default it will take =
the latest ver3.0
}
catch ( CException* e)
{
e->ReportError();
e->Delete();
}=20
"Stefano Tempesta" <s.tempesta@usa.net> wrote in message =
news:3a968e5c_2@dnews...
> How to create an MS Access 2000 database at runtime (with all tables) =
,
> please?
> Thanks in advance.
>=20
> --
> __________________
> Stefano Tempesta
> [Real Training]
> stefano@tempesta.org
> http://www.tempesta.org
>=20
>=20
------=_NextPart_000_0057_01C0A0AB.95D770F0
Content-Type: text/html;
charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-9">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>You can not do that with ADO but with=20
DAO.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I dont know BC++Builder yet , but with =
VC++, you=20
can code like this;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>bulentozkir@hotmail.com</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>
<P><FONT face=3DArial size=3D2><STRONG>CDaoDatabase daodb;=20
</STRONG></FONT></P>
<P><FONT face=3DArial size=3D2><STRONG>CString szdbPath =3D=20
"C:\\temp\\ziggurat.mdb";<BR>try<BR>{<BR> &n=
bsp;=20
daodb.Create(szdbPath,dbLangGeneral); //by default it will take =
the latest=20
ver3.0<BR>}<BR>catch ( CException*=20
e)<BR>{<BR>e->ReportError();<BR>e->Delete();<BR>}</STRONG>=20
</FONT></P></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>"Stefano Tempesta" <</FONT><A=20
href=3D"mailto:s.tempesta@usa.net"><FONT face=3DArial=20
size=3D2>s.tempesta@usa.net</FONT></A><FONT face=3DArial size=3D2>> =
wrote in=20
message </FONT><A href=3D"news:3a968e5c_2@dnews"><FONT face=3DArial=20
size=3D2>news:3a968e5c_2@dnews</FONT></A><FONT face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> How to create =
an MS Access=20
2000 database at runtime (with all tables) ,<BR>> please?<BR>> =
Thanks in=20
advance.<BR>> <BR>> --<BR>> __________________<BR>> Stefano=20
Tempesta<BR>> [Real Training]<BR>> </FONT><A=20
href=3D"mailto:stefano@tempesta.org"><FONT face=3DArial=20
size=3D2>stefano@tempesta.org</FONT></A><BR><FONT face=3DArial =
size=3D2>> </FONT><A=20
href=3D"http://www.tempesta.org"><FONT face=3DArial=20
size=3D2>http://www.tempesta.org</FONT></A><BR><FONT face=3DArial =
size=3D2>>=20
<BR>> </FONT></BODY></HTML>
------=_NextPart_000_0057_01C0A0AB.95D770F0--
Technical Details
Message-ID:
<3a9b6964_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!212.50.36.222References:
<3a968e5c_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,fa557a62f5419a6e X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-02-27 00:52:06 PST Reply-To: "ziggurat" <nopreach@excite.com> From: "ziggurat" <nopreach@excite.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3a968e5c_2@dnews> Subject: Re: Creating an MS Access 2000 database at runtime Date: Tue, 27 Feb 2001 10:53:57 +0200 Lines: 102 Organization: ziggurat MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0057_01C0A0AB.95D770F0" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 212.50.36.222 Message-ID: <3a9b6964_2@dnews> X-Trace: 27 Feb 2001 00:46:28 -0800, 212.50.36.222 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!212.50.36.222