use <table>
* Remove Autoinc
alter table <table> alter column <autoinc field> I

' Append missing records
' or do this via a straight apend from wherever
insert into <table> from (select * from <import table>)

' Turn Autoinc back on
alter table <table> alter column <autoinc field> Int I autoinc

Dave
-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Graham Brown
Sent: 30 September 2013 15:48
To: ProFox Email List
Subject: Overwrite autoinc field 

Hi 

 

I need to fix a dbf that has some missing records. The system has a good audit 
trail so I can find the missing data.

 

The problem is that I want to use the same autoinc fields in the database

The only way I can think is to issue alter table <tablename> alter <fieldname> 
I AUTOINC <myvalue> first then run the insert sql.

 

Is there a better way to do this?

 

Cheers

Graham

 

 

 

 

 



--- StripMime Report -- processed MIME parts --- multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.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