Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 11 to 13 of 13 total |
Scripting issue. |
Tue, May 15 2007 6:15 PM | Permanent Link |
"Ian Branch" | Resolved via email.
As probably suspected all along it was me. I didn't check the LoadFromFile action. It was overwriting my pre added SQL commands. My thanks to Tim once again. Ian -- |
Thu, Feb 28 2008 6:58 PM | Permanent Link |
"Jeff Cook" | Ian Branch wrote:
> Hi Guys, > > D7Pro, Latest DBISAM. > > When I run the following code/query in a DBISAMQuery....where > "lbTarget.Items[vTCnt]" contains 'accounts.sql', sans the quotes. > > > SQL.Clear; > Sql.Add('empty table ' + LeftStr(lbTarget.Items[vTCnt], > Length(lbTarget.Items[vTCnt]) - 4) + ';'); > Sql.Add('Start Transaction;'); > Sql.LoadFromFile(eTargetDir.Text + '\' + > lbTarget.Items[vTCnt]); Sql.Add('Commit;'); > ExecSQL; > > I get a duplicate index error which to me indicates the empty table > command is not happening. > > Any thoughts as to what I have missed? > > Regards & TIA, > > Ian Ian Won't the LoadFromFile clear the previous contents of SQL, so the EMPTY TABLE and START TRANSACTION are both lost? Cheers Jeff -- Jeff Cook Aspect Systems Ltd www.aspect.co.nz + Joan and Jeff Cook The Cooks Oasis www.cookislandsoasis.com |
Thu, Feb 28 2008 7:00 PM | Permanent Link |
"Jeff Cook" | And how weird that XanaNews suddenly popped up this old thread as a new
one! I will now go away. -- Jeff Cook Aspect Systems Ltd www.aspect.co.nz + Joan and Jeff Cook The Cooks Oasis www.cookislandsoasis.com |
« Previous Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Sunday, May 19, 2024 at 08:46 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |