Click here to Skip to main content
15,894,907 members
Home / Discussions / Database
   

Database

 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
Mycroft Holmes8-Mar-10 23:41
professionalMycroft Holmes8-Mar-10 23:41 
AnswerRe: MS SQL: how to reorganize identity column values? Pin
Mycroft Holmes7-Mar-10 18:36
professionalMycroft Holmes7-Mar-10 18:36 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik8-Mar-10 1:06
michal.kreslik8-Mar-10 1:06 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik8-Mar-10 21:54
michal.kreslik8-Mar-10 21:54 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
Mycroft Holmes8-Mar-10 22:27
professionalMycroft Holmes8-Mar-10 22:27 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik8-Mar-10 22:30
michal.kreslik8-Mar-10 22:30 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik8-Mar-10 23:57
michal.kreslik8-Mar-10 23:57 
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik9-Mar-10 23:19
michal.kreslik9-Mar-10 23:19 
udpate:

so even this way, the LOG file grows so much that it fills the whole 1000 GB disk. which is ridiculous as the db itself without the indexes is only about 110 GBs big. it's 315 GBs with all indexes. in the new table I'm only using 2 out of the 6 original indexes. as always when one does some change, I've found out I'm actually no longer using the remaining 4 indexes, so I dropped them in the new table Smile | :)

I think the problem here is that although the recovery model is set to simple, the log file keeps track of all the transactions until the statement has terminated and all data has been fully written to the disk.

so I think the solution now is to try to do this INSERT INTO in batches and make sure the log file gets truncated after the completion of each batch.

I'm wondering just how much disk space this operation would eventually need to complete if done at once. it would be useful if SQL server provided a way to carry out these bulk operations in some kind of "unsafe" mode with no logging at all. unless I'm missing something, it's not possible to turn off all logging in the MS SQL server.

I'll update you Smile | :)
GeneralRe: MS SQL: how to reorganize identity column values? Pin
michal.kreslik15-Mar-10 0:53
michal.kreslik15-Mar-10 0:53 
QuestionSQL Query Pin
Wayne Gaylard5-Mar-10 22:20
professionalWayne Gaylard5-Mar-10 22:20 
AnswerRe: SQL Query Pin
Mycroft Holmes6-Mar-10 2:42
professionalMycroft Holmes6-Mar-10 2:42 
GeneralRe: SQL Query Pin
Wayne Gaylard6-Mar-10 6:25
professionalWayne Gaylard6-Mar-10 6:25 
GeneralRe: SQL Query Pin
Mycroft Holmes6-Mar-10 11:53
professionalMycroft Holmes6-Mar-10 11:53 
GeneralRe: SQL Query Pin
Wayne Gaylard6-Mar-10 14:30
professionalWayne Gaylard6-Mar-10 14:30 
QuestionStrength of MSAccess 2007. Pin
priyamtheone5-Mar-10 20:18
priyamtheone5-Mar-10 20:18 
AnswerRe: Strength of MSAccess 2007. Pin
Jörgen Andersson6-Mar-10 0:06
professionalJörgen Andersson6-Mar-10 0:06 
AnswerRe: Strength of MSAccess 2007. Pin
Mycroft Holmes6-Mar-10 2:37
professionalMycroft Holmes6-Mar-10 2:37 
QuestionSqlConnection - to keep around or dispose Pin
treefirmy5-Mar-10 18:49
treefirmy5-Mar-10 18:49 
AnswerRe: SqlConnection - to keep around or dispose Pin
Eddy Vluggen6-Mar-10 1:24
professionalEddy Vluggen6-Mar-10 1:24 
QuestionIs there a way to change a column property in a table without having to delete the entire table? Pin
tonyonlinux4-Mar-10 8:43
tonyonlinux4-Mar-10 8:43 
AnswerRe: Is there a way to change a column property in a table without having to delete the entire table? Pin
Luc Pattyn4-Mar-10 9:05
sitebuilderLuc Pattyn4-Mar-10 9:05 
GeneralRe: Is there a way to change a column property in a table without having to delete the entire table? Pin
tonyonlinux4-Mar-10 9:19
tonyonlinux4-Mar-10 9:19 
GeneralRe: Is there a way to change a column property in a table without having to delete the entire table? Pin
Tim Carmichael4-Mar-10 10:18
Tim Carmichael4-Mar-10 10:18 
QuestionEncrypt/Decrypt Password Field in Sybase Pin
MWRivera4-Mar-10 5:42
MWRivera4-Mar-10 5:42 
AnswerRe: Encrypt/Decrypt Password Field in Sybase Pin
David Skelly5-Mar-10 2:06
David Skelly5-Mar-10 2:06 

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.