Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databases with same name
Message
From
20/10/2003 10:55:40
 
 
To
20/10/2003 10:37:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00840260
Message ID:
00840298
Views:
21
This message has been marked as the solution to the initial question of the thread.
why didn't you say that in the first place :)

Based on the code, it looks like you're appending all the data each time, so I'd expect this error.
e.g.
first time ever - append 3 records
second time - 3 new records - appending 6 records - but 3 were already appended so you get the error

You need to add some code to make sure you're getting new records only.
e.g, Here's one way to do it
** vfp8
insert into targetTable ;
  select * from sourceTable ; 
    where sourceTable.id not in ( ;
       select id from targetTable)

** prior to vfp8
select * from sourceTable ; 
   where sourceTable.id not in ( ;
      select id from targetTable) ;
   into cursor cutmp
select targetTable
append from dbf("cutmp")
>Thanks
>
>But i see the same error : Uniqueness of index ... is violated .
>
>Any ideia ?
>
>Thanks
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform