aRTx's picture
Apr 30, 2013
3045 views
Reputation: 101

Delete tables data!

Tags: 

Hi

Below is the script for cleanin DataBase.

There is an error, but it's cleaning.

Can anyone look is this working or not?

-======================================

DELETE FROM [Payments]

GO

DELETE FROM [TicketEntities]

GO

DELETE FROM [Tickets]

GO

DELETE FROM [AccountTransactionDocuments]

GO

DELETE FROM [AccountTransactions]

GO

DELETE FROM [AccountTransactionValues]

GO

DELETE FROM [Calculations]

GO

DELETE FROM [CostItems]

GO

DELETE FROM [InventoryTransactionDocuments]

GO

DELETE FROM [InventoryTransactions]

GO

DELETE FROM [Orders]

GO

DELETE FROM [PaidItems]

GO

DELETE FROM [PeriodicConsumptionItems]

GO

DELETE FROM [PeriodicConsumptions]

GO

DELETE FROM [WarehouseConsumptions]

GO

DELETE FROM [WorkPeriods]

GO

Update Numerators set Number = 0

GO

Update Tables set TicketId = 0, IsTicketLocked = 0

-======================================

We have already answers to
1030 questions
E-Posta Facebook Twitter RSS Skype
Telefon (212) 252 0634