On Mon, Aug 9, 2010 at 8:18 AM, MB Software Solutions General Account
<[email protected]> wrote:
> On Fri, August 6, 2010 5:22 pm, Richard Kaye wrote:
>> Here's a completely untested pseudo-code suggestion, Mike...
>>
>>
>> USE lantable
>> COPY STRUCTURE TO localtable WITH CDX
>> SELECT lantable
>> SCAN
>> SCATTER FIELDS EXCEPT pkey
>> SELECT localtable
>> GATHER
>> ENDSCAN
>
>
> Hmmm...I understand your point, but this doesn't exactly ensure the pkeys
> are the same.  I guess I'd have to do a ALTER TABLE to remove the AUTOINC
> temporarily, then put it back after the COPY completes.
>
> Thanks for the ideas.
---------------------

This is why I use GUID for keys.  They are transportable.  I have been
burned by this in a few locations and it never gets easier.


-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to