Click here to Skip to main content
15,891,375 members
Home / Discussions / Database
   

Database

 
GeneralRe: Excessive unused space Pin
Marek Grzenkowicz9-Apr-07 6:49
Marek Grzenkowicz9-Apr-07 6:49 
GeneralRe: Excessive unused space Pin
Ian Dennis9-Apr-07 7:05
Ian Dennis9-Apr-07 7:05 
GeneralRe: Excessive unused space Pin
Marek Grzenkowicz9-Apr-07 21:43
Marek Grzenkowicz9-Apr-07 21:43 
GeneralRe: Excessive unused space Pin
Ian Dennis11-Apr-07 7:59
Ian Dennis11-Apr-07 7:59 
AnswerRe: Excessive unused space Pin
Ian Dennis11-Apr-07 8:11
Ian Dennis11-Apr-07 8:11 
GeneralRe: Excessive unused space Pin
Marek Grzenkowicz24-Apr-07 1:56
Marek Grzenkowicz24-Apr-07 1:56 
GeneralRe: Excessive unused space Pin
Ian Dennis24-Apr-07 7:41
Ian Dennis24-Apr-07 7:41 
AnswerRe: Excessive unused space Pin
Ian Dennis24-Apr-07 7:39
Ian Dennis24-Apr-07 7:39 
The problem seems to be centered around bugs reported by Microsoft as articles 934378 and 924947.

Additionally, someone had set the database autogrowth setting to 10% and so towards the end of the conversion run the autogrow was taking longer and longer (resizing by 10% of 39Gb takes a lot longer than 10% of 6Gb) and therefore my inserts were timing out - to add misery to confusion.

My eventual solution was:

(1) Initially size the database to 40Gb. This solved the problem mentioned above
(2) Make sure each table inserted into had at least one clustered index. This worked around the bug mentioned in article 924947
(3) When the conversion was finished, run a routine to rebuild ALL the indexes for ALL the tables. This worked around the bug mentioned in article 934378.
(4) Finally, do a DBCC SHRINKDATABASE

Without these fixes, the conversion left database = 39Gb, unused = 27Gb.
With these fixes, the conversion left database = 12Gb, unused = 4Gb.

It took me a long time to find (each run of the conversion takes 10 hours) but I ended up learning a lot about SQL Server!
QuestionProblem in inserting large amount of records in MS Access Pin
Affan Toor6-Apr-07 4:50
Affan Toor6-Apr-07 4:50 
AnswerRe: Problem in inserting large amount of records in MS Access Pin
DQNOK6-Apr-07 6:04
professionalDQNOK6-Apr-07 6:04 
QuestionDTS to load the data from csv file in to a table in the database Pin
indian1436-Apr-07 4:43
indian1436-Apr-07 4:43 
Questionwhat is SqlDataAdapter and SqlDataReader? Pin
sathyan_82946-Apr-07 4:15
sathyan_82946-Apr-07 4:15 
AnswerRe: what is SqlDataAdapter and SqlDataReader? Pin
Krish - KP6-Apr-07 4:47
Krish - KP6-Apr-07 4:47 
Questioninserting a row into table from the form data Pin
Raheem MA5-Apr-07 23:52
Raheem MA5-Apr-07 23:52 
AnswerRe: inserting a row into table from the form data Pin
_mubashir6-Apr-07 3:21
_mubashir6-Apr-07 3:21 
AnswerRe: inserting a row into table from the form data Pin
Krish - KP6-Apr-07 3:48
Krish - KP6-Apr-07 3:48 
AnswerRe: inserting a row into table from the form data Pin
Ian Dennis6-Apr-07 7:38
Ian Dennis6-Apr-07 7:38 
QuestionInner Join Problem Pin
rkherath5-Apr-07 23:38
rkherath5-Apr-07 23:38 
AnswerRe: Inner Join Problem Pin
kubben6-Apr-07 2:08
kubben6-Apr-07 2:08 
GeneralRe: Inner Join Problem Pin
rkherath8-Apr-07 17:27
rkherath8-Apr-07 17:27 
AnswerRe: Inner Join Problem Pin
Krish - KP6-Apr-07 2:09
Krish - KP6-Apr-07 2:09 
Questionwhen DTS package fails runnig, display message Pin
indian1435-Apr-07 20:44
indian1435-Apr-07 20:44 
QuestionUnicode, VB 2005 and SQL Server 2000 Pin
San Vibol5-Apr-07 17:21
San Vibol5-Apr-07 17:21 
QuestionMySQL connection problem Pin
shabonaa5-Apr-07 13:46
shabonaa5-Apr-07 13:46 
AnswerRe: MySQL connection problem Pin
Hayder Marzouk6-Apr-07 7:53
Hayder Marzouk6-Apr-07 7:53 

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.