🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Create new database problem

#1734
From: Heinz
Date: Thu, 22 Apr 2004 14:42
52 lines
2139 bytes
Hi Martin, 

I'm sorta in the same boat as you. Just starting out.
I Don't know if this website will be able to solve your problem.

A great website that got me started!
It has a lot more stuff then simply building a Database.
Definitely bookmark this site, it's one of my favourites for help.

http://www.oash.com/read/computer/b/bcb/
<Chapter 8>

Heinz





"Martin Moeller" <martin.moeller@moema.it> wrote:
>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: <4087d9de$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4087d2f4@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,270202afc138267d
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-04-22 08:04:15 PST
From: "Heinz " <pingpongoz@n0spam.h0tmail.n0spam.c0m>
Sender: "Heinz " <pingpongoz@n0spam.h0tmail.n0spam.c0m>
Reply-To: "Heinz " <pingpongoz@n0spam.h0tmail.n0spam.c0m>
Subject: Re: Create new database problem
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 146.131.120.2     
References:  <4087d2f4@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4087d9de$1@newsgroups.borland.com>
Date: 22 Apr 2004 07:42:38 -0700
X-Trace: newsgroups.borland.com 1082644958 207.105.83.66 (22 Apr 2004 07:42:38 -0700)
Lines: 53
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail