Article View: borland.public.cppbuilder.database.ado
Article #343Re: TADOQuery->SQL->LoadFromFile ???
From: Damian Murray
Date: Tue, 15 Aug 2006 00:24
Date: Tue, 15 Aug 2006 00:24
42 lines
2234 bytes
2234 bytes
Hi Stephane, Theres no error with this method, just you having a little misunderstanding... The -->LoadFromFile(...) method is for reading in dataset that have been previously saved in XML or Borland Proprietary (ADTG) formats . Read the C++ help section on using the TADODataSet->SaveToFile(...) and TADODataSet->LoadFromFile(...). Damian "Stephane Baillargeon" <hidari__sei@hotmail.com> wrote in message news:44dd1f29$1@newsgroups.borland.com... >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:
<44e11399$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44dd137d@newsgroups.borland.com> <44dd1f29$1@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: "Damian Murray" <damian@wayahead.com.au> Newsgroups: borland.public.cppbuilder.database.ado References: <44dd137d@newsgroups.borland.com> <44dd1f29$1@newsgroups.borland.com> Subject: Re: TADOQuery->SQL->LoadFromFile ??? Date: Tue, 15 Aug 2006 10:24:36 +1000 Lines: 44 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.2962 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 220.240.226.197 Message-ID: <44e11399$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155601305 220.240.226.197 (14 Aug 2006 17:21:45 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail