Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Truncate table 1

Status
Not open for further replies.

zemp

Programmer
Jan 27, 2002
3,301
CA
Pervasive 8.6 and 9

MS SQL Server has a 'Truncate Table..' SQL statement that will remove all date from the table and reset the PK identity field to '1'(the starting value).

Does Pervasive have a similar statement/keyword? If so what is the synatx? If not how can I acheive the same effect in Pervasive?

I have searched the Pervasive site forums and knowledge base with no luck.

zemp
 
THere is no truncate command.
One way you can do it is delete all records using "delete from <table>". That will also reset the Identity field.
If this is in an application, you could drop the table and recreate it as well.



Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
That's what I needed, thanks.

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top