برای
ناپ کامرس 4.20 از کوئری زیر استفاده کنید:
DELETE FROM ActivityLog
DELETE FROM Affiliate
DELETE FROM BlogComment
DELETE FROM BlogPost
DELETE FROM Category
DELETE FROM Customer_CustomerRole_Mapping WHERE Customer_ID > 1
DELETE FROM CustomerAddresses
UPDATE Customer SET BillingAddress_Id = NULL, ShippingAddress_Id = NULL
DELETE FROM Customer WHERE ID > 3
DELETE FROM [Address]
DELETE FROM CustomerPassword WHERE ID > 3
DELETE FROM Download
DELETE FROM Forums_Forum
DELETE FROM GenericAttribute WHERE EntityId > 1
DELETE FROM GiftCard
DELETE FROM [Log]
DELETE FROM Manufacturer
DELETE FROM News
DELETE FROM NewsComment
DELETE FROM [Order]
DELETE FROM OrderItem
DELETE FROM OrderNote
DELETE FROM Picture
DELETE FROM PictureBinary
DELETE FROM Poll
DELETE FROM PollAnswer
DELETE FROM PollVotingRecord
DELETE FROM Product
DELETE FROM Product_Category_Mapping
DELETE FROM Product_Picture_Mapping
DELETE FROM Product_ProductAttribute_Mapping
DELETE FROM Product_ProductTag_Mapping
DELETE FROM ProductAttribute
DELETE FROM ProductAttributeCombination
DELETE FROM ProductAttributeValue
DELETE FROM ProductReview
DELETE FROM ProductReviewHelpfulness
DELETE FROM ProductTag
DELETE FROM QueuedEmail
DELETE FROM RecurringPaymentHistory
DELETE FROM RelatedProduct
DELETE FROM ReturnRequest
DELETE FROM RewardPointsHistory
DELETE FROM SearchTerm
DELETE FROM ShoppingCartItem
DELETE FROM SpecificationAttribute
DELETE FROM SpecificationAttributeOption
DELETE FROM StorePickupPoint
DELETE FROM UrlRecord WHERE ID > 12
DELETE FROM Vendor
DELETE FROM Warehouse
DBCC CHECKIDENT (ActivityLog, RESEED, 0)
DBCC CHECKIDENT ([Address], RESEED, 0)
DBCC CHECKIDENT (Affiliate, RESEED, 0)
DBCC CHECKIDENT (BlogComment, RESEED, 0)
DBCC CHECKIDENT (BlogPost, RESEED, 0)
DBCC CHECKIDENT (Category, RESEED, 0)
DBCC CHECKIDENT (Download, RESEED, 0)
DBCC CHECKIDENT (Forums_Forum, RESEED, 0)
DBCC CHECKIDENT (GiftCard, RESEED, 0)
DBCC CHECKIDENT ([Log], RESEED, 0)
DBCC CHECKIDENT (Manufacturer, RESEED, 0)
DBCC CHECKIDENT (News, RESEED, 0)
DBCC CHECKIDENT (NewsComment, RESEED, 0)
DBCC CHECKIDENT ([Order], RESEED, 0)
DBCC CHECKIDENT (OrderItem, RESEED, 0)
DBCC CHECKIDENT (OrderNote, RESEED, 0)
DBCC CHECKIDENT (Picture, RESEED, 0)
DBCC CHECKIDENT (PictureBinary, RESEED, 0)
DBCC CHECKIDENT (Poll, RESEED, 0)
DBCC CHECKIDENT (PollAnswer, RESEED, 0)
DBCC CHECKIDENT (PollVotingRecord, RESEED, 0)
DBCC CHECKIDENT (Product, RESEED, 0)
DBCC CHECKIDENT (Product_Category_Mapping, RESEED, 0)
DBCC CHECKIDENT (Product_Picture_Mapping, RESEED, 0)
DBCC CHECKIDENT (Product_ProductAttribute_Mapping, RESEED, 0)
DBCC CHECKIDENT (ProductAttribute, RESEED, 0)
DBCC CHECKIDENT (ProductAttributeCombination, RESEED, 0)
DBCC CHECKIDENT (ProductAttributeValue, RESEED, 0)
DBCC CHECKIDENT (ProductReview, RESEED, 0)
DBCC CHECKIDENT (ProductReviewHelpfulness, RESEED, 0)
DBCC CHECKIDENT (ProductTag, RESEED, 0)
DBCC CHECKIDENT (QueuedEmail, RESEED, 0)
DBCC CHECKIDENT (RecurringPaymentHistory, RESEED, 0)
DBCC CHECKIDENT (RelatedProduct, RESEED, 0)
DBCC CHECKIDENT (ReturnRequest, RESEED, 0)
DBCC CHECKIDENT (RewardPointsHistory, RESEED, 0)
DBCC CHECKIDENT (SearchTerm, RESEED, 0)
DBCC CHECKIDENT (ShoppingCartItem, RESEED, 0)
DBCC CHECKIDENT (SpecificationAttribute, RESEED, 0)
DBCC CHECKIDENT (SpecificationAttributeOption, RESEED, 0)
DBCC CHECKIDENT (StorePickupPoint, RESEED, 0)
DBCC CHECKIDENT (Vendor, RESEED, 0)
DBCC CHECKIDENT (Warehouse, RESEED, 0)