VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 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
1898 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