🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TADOQuery->SQL->LoadFromFile ???

#341
From: Stephane Baillargeon
Date: Fri, 11 Aug 2006 23:31
16 lines
1405 bytes
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: <44dd137d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,c628eef4f2e32695,start
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
Subject: TADOQuery->SQL->LoadFromFile ???
Date: Fri, 11 Aug 2006 19:31:53 -0400
Lines: 18
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; Original
NNTP-Posting-Host: 67.68.234.168
Message-ID: <44dd137d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1155339133 67.68.234.168 (11 Aug 2006 16:32:13 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail