🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADOCommand

#1758
From: Borut
Date: Fri, 20 Feb 2004 16:56
35 lines
1907 bytes
Thanks i've solved the problem!

"Borut" <borut@bokosoft.si> wrote in message
news:4035c42f$1@newsgroups.borland.com...
> What is wrong with this code:
>
> CREATE DATABASE [trgo]  ON (NAME = N'trgo_dat', FILENAME =
> N'C:\razvoj\trgo.mdf' , SIZE = 20, FILEGROWTH = 10%) LOG ON (NAME =
> N'trgo_log', FILENAME = N'C:\razvoj\trgo.ldf' , SIZE = 2, MAXSIZE = 13,
> FILEGROWTH = 10%)
>  COLLATE Slovenian_CI_AS
>
> I can not it execute in ADOCommand.
>
> Got this error:
>     Device activation error. The physical file name 'C:\razvoj\trgo.mdf'
may
> be incorrect.
>
> How can I define command text in runtime. What is wrong with this:
>
>          for (int j = 0; j < Memo2->Lines->Count; j++)
>          {
>             ADOCommand1->CommandText += Memo2->Lines->Strings[j];
>          }
>          ADOCommand1->Prepared = true;
>          ADOCommand1->Execute();
>
> I always get error:
>     Command text was not set for the command object.
>
> Thx
> Borut
>
>
Technical Details
Message-ID: <40363c57@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4035c42f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,6dbbf0786847a5e8
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-02-20 09:10:22 PST
Reply-To: "Borut" <borut@bokosoft.si>
From: "Borut" <borut@bokosoft.si>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4035c42f$1@newsgroups.borland.com>
Subject: Re: ADOCommand
Date: Fri, 20 Feb 2004 17:56:52 +0100
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
NNTP-Posting-Host: 193.77.157.52
Message-ID: <40363c57@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1077296215 193.77.157.52 (20 Feb 2004 08:56:55 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail