Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper way to recycle record
Message
De
19/01/2015 21:27:56
 
 
À
19/01/2015 16:44:43
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01613891
Message ID:
01613944
Vues:
37
>Before moving to a recycling process did you Google [sql server delete no log] ?
>
>I haven't read any of the hits but what you're doing isn't unique so others may have found useful workarounds.

Thanks, this search is proven to be useful. I found some interesting topics.

This page discusses some of that:

http://www.sqlservercentral.com/Forums/Topic648742-338-1.aspx

But, there is one over there who votes for the importance of a rollback. Lets say I do not want a rollback because what I delete as to go no matter what.

Basically, what I was hoping for was a way to delete without any transaction log being involved. When I first tried that, I tried to do it in one command. That would be similar to what is being discussed at this page:

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/52e6be98-6165-4b1e-a926-5d5609ab8486/delete-large-number-of-rows-without-growing-the-transaction-log?forum=transactsql

But, that was making the transaction log to crawl. So, I went into selecting all the primary keys I need to delete and delete one record at a time. While this is safer, it is not the faster way to do it.

They recommand a batch of 2000 records. But, this batch limit, in order to keep it safe, varies based on the environment. If I have to delete two million records every 30 minutes, deleting them 2000 at a time will still take a lot of time. I remember not so long ago we were able to achieve that in a fraction of a second. lol

...oh yes, there is TRUNCATE. But, that wipes out the entire table. I wish there would be something in the middle.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform