Article View: borland.public.cppbuilder.database.ado
Article #1733Create new database problem
From: Martin Moeller
Date: Thu, 22 Apr 2004 14:13
Date: Thu, 22 Apr 2004 14:13
30 lines
1726 bytes
1726 bytes
Hi, I'm just starting with ADO and want to interface Access DB. Trying to create a new database file, I've 'copied' from other posts following code: AdoCmd->CommandText = " CREATE DATABASE [Admin] ON (NAME = N'Admin', FILENAME = \ N'C:mymdf.mdf' , SIZE = 20, FILEGROWTH = 10%) LOG ON (NAME = \ N'Admin', FILENAME = N'C:\mymdf.ldf' , SIZE = 2, MAXSIZE = 13, \ FILEGROWTH = 10%)" ; Memo1->Lines->Append(AdoCmd->CommandText); AdoCmd->Connection = ADOConnection; AdoCmd->Execute(); AdoCmd & AdoConnection are set on the Form; provider string for connection is Microsoft.Jet.OLEDB.4.0 I get an exception for 'failed authentication' ? Anyone has a good link for an Ado tutorial or a quickstart? Tks & Rgds, Martin
Technical Details
Message-ID:
<4087d2f4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.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-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,270202afc138267d,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-04-22 07:40:43 PST Reply-To: "Martin Moeller" <martin.moeller@moema.it> From: "Martin Moeller" <martin.moeller@moema.it> Newsgroups: borland.public.cppbuilder.database.ado Subject: Create new database problem Date: Thu, 22 Apr 2004 16:13:06 +0200 Lines: 32 Organization: Moe.Ma Italiana Srl X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 212.171.6.186 Message-ID: <4087d2f4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1082643188 212.171.6.186 (22 Apr 2004 07:13:08 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.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