Article View: borland.public.cppbuilder.database.ado
Article #1752ADOCommand
From: Borut
Date: Fri, 20 Feb 2004 08:24
Date: Fri, 20 Feb 2004 08:24
28 lines
1736 bytes
1736 bytes
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:
<4035c42f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-05!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-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,6dbbf0786847a5e8,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-02-20 00:39:38 PST Reply-To: "Borut" <borut@bokosoft.si> From: "Borut" <borut@bokosoft.si> Newsgroups: borland.public.cppbuilder.database.ado Subject: ADOCommand Date: Fri, 20 Feb 2004 09:24:14 +0100 Lines: 30 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: <4035c42f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077265455 193.77.157.52 (20 Feb 2004 00:24:15 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-05!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