Click here to Skip to main content
15,895,011 members
Home / Discussions / Database
   

Database

 
GeneralRe: run dynamic sql [mysql] Pin
Jassim Rahma18-Dec-10 2:19
Jassim Rahma18-Dec-10 2:19 
Questioncurrent server Pin
Jassim Rahma8-Dec-10 3:33
Jassim Rahma8-Dec-10 3:33 
AnswerRe: current server Pin
PIEBALDconsult8-Dec-10 14:10
mvePIEBALDconsult8-Dec-10 14:10 
Questionget server default collation ad character set Pin
Jassim Rahma8-Dec-10 3:32
Jassim Rahma8-Dec-10 3:32 
AnswerRe: get server default collation ad character set Pin
Hiren solanki8-Dec-10 23:18
Hiren solanki8-Dec-10 23:18 
Questionbig deletes transaction log full Pin
devvvy6-Dec-10 20:33
devvvy6-Dec-10 20:33 
AnswerRe: big deletes transaction log full Pin
Luc Pattyn6-Dec-10 21:00
sitebuilderLuc Pattyn6-Dec-10 21:00 
AnswerRe: big deletes transaction log full Pin
David Mujica7-Dec-10 3:45
David Mujica7-Dec-10 3:45 
Are you using transactions ?

If so, maybe you need to change your algorithm so that you are not deleting so many rows at one time.

Something like:

select key from mytable into #Temp1

Loop
begin transactioin
delete some rows where select top 1000 from #Temp1
delete same rows from #Temp1
Commit
Until No more rows in #Temp1

Otherwise, if this is part of a one-time data cleanup, then you might want to
A) Get your users off the database, so that you can do system maintenace.
1) Take a full backup of the database
2) switch the recover mode of the database to "simple"
3) Perform your delete
4) Take another full backup
5) Put the database back into the recovery mode you had before
6) Allow your users back into the database

Just some ideas.
Good luck. Thumbs Up | :thumbsup:
AnswerRe: big deletes transaction log full Pin
Mycroft Holmes7-Dec-10 11:23
professionalMycroft Holmes7-Dec-10 11:23 
QuestionPassing values to a stored proc Pin
tasumisra6-Dec-10 3:59
tasumisra6-Dec-10 3:59 
AnswerRe: Passing values to a stored proc Pin
Erdinc276-Dec-10 4:50
Erdinc276-Dec-10 4:50 
GeneralRe: Passing values to a stored proc Pin
tasumisra6-Dec-10 5:13
tasumisra6-Dec-10 5:13 
GeneralRe: Passing values to a stored proc Pin
jschell6-Dec-10 11:57
jschell6-Dec-10 11:57 
AnswerRe: Passing values to a stored proc Pin
Mycroft Holmes6-Dec-10 13:27
professionalMycroft Holmes6-Dec-10 13:27 
GeneralRe: Passing values to a stored proc Pin
PIEBALDconsult6-Dec-10 14:43
mvePIEBALDconsult6-Dec-10 14:43 
GeneralRe: Passing values to a stored proc Pin
Mycroft Holmes6-Dec-10 15:19
professionalMycroft Holmes6-Dec-10 15:19 
GeneralRe: Passing values to a stored proc Pin
Jörgen Andersson6-Dec-10 20:13
professionalJörgen Andersson6-Dec-10 20:13 
Questionadding Group by result to each other Pin
Erdinc276-Dec-10 1:50
Erdinc276-Dec-10 1:50 
AnswerRe: adding Group by result to each other Pin
Goutam Patra6-Dec-10 2:09
professionalGoutam Patra6-Dec-10 2:09 
GeneralRe: adding Group by result to each other Pin
Erdinc276-Dec-10 2:27
Erdinc276-Dec-10 2:27 
AnswerRe: adding Group by result to each other Pin
Goutam Patra6-Dec-10 2:38
professionalGoutam Patra6-Dec-10 2:38 
GeneralRe: adding Group by result to each other Pin
Erdinc276-Dec-10 2:55
Erdinc276-Dec-10 2:55 
QuestionMass Data on db Pin
Alireza Loghmani5-Dec-10 8:22
Alireza Loghmani5-Dec-10 8:22 
AnswerRe: Mass Data on db Pin
Eddy Vluggen5-Dec-10 11:35
professionalEddy Vluggen5-Dec-10 11:35 
GeneralRe: Mass Data on db Pin
Alireza Loghmani5-Dec-10 11:42
Alireza Loghmani5-Dec-10 11:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.