🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADOQuery->SQL->LoadFromFile ???

#342
From: Stephane Baillargeon
Date: Sat, 12 Aug 2006 00:21
28 lines
1717 bytes
I found this but I still want to know why it doesn't work?

 TStringList *sl = new TStringList();
 sl->LoadFromFile( strFile );
 padoQry->SQL-Text = sl->Text;
 delete sl;


"Stephane Baillargeon" <hidari__sei@hotmail.com> wrote in message 
news:44dd137d@newsgroups.borland.com...
> I'm trying to load a .sql file using the LoadFromFile method. I've checked 
> everything (file presence, connection string, and any kind of data that 
> could be overwriting it) Nothing seems out of order.
>
> Is it possible that this method has an error in it?
>
> EX:
>
> TADOQuery *padoQry = new TADOQuery( NULL );
> padoQry->SQL->Clear();
> padoQry->SQL->LoadFromFile( FileName );
>
>
> padoQry->SQL->Text is equal to "??????\r\n"
> ?????????
> it is supposed to be " SELECT * FROM Table \r\n"
>
> 
Technical Details
Message-ID: <44dd1f29$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44dd137d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,c628eef4f2e32695
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Stephane Baillargeon" <hidari__sei@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <44dd137d@newsgroups.borland.com>
Subject: Re: TADOQuery->SQL->LoadFromFile ???
Date: Fri, 11 Aug 2006 20:21:35 -0400
Lines: 30
Organization: Solutions Gestico
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 67.68.234.168
Message-ID: <44dd1f29$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1155342121 67.68.234.168 (11 Aug 2006 17:22:01 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail