Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Problems and bugs
 Reset catid
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

chadstanphill
Starting Member

1 Posts

Posted - February 11 2010 :  13:03:30  Show Profile  Reply with Quote
We cleared all the categories out is there any way to reset the catid back to 1?
Thanks

devshb
Senior Member

United Kingdom
1904 Posts

Posted - February 12 2010 :  04:25:55  Show Profile  Visit devshb's Homepage  Reply with Quote
If you're using sqlserver, you can reseed the table to get it to start from a given value for the next record, eg:

DBCC CHECKIDENT (categories, reseed, 0)

see also:
http://www.howtogeek.com/howto/database/reset-identity-column-value-in-sql-server/

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
www.BigYellowKey.com
Follow us on Twitter: http://twitter.com/bigyellowzone
Web Design, Online Marketing and VPASP addons
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00