Click here to Skip to main content
15,918,976 members
Home / Discussions / Database
   

Database

 
AnswerRe: script execution Pin
Colin Angus Mackay24-Jun-06 10:49
Colin Angus Mackay24-Jun-06 10:49 
Questioncan we generate a trigger for two tables? Pin
laxman.m23-Jun-06 21:24
laxman.m23-Jun-06 21:24 
AnswerRe: can we generate a trigger for two tables? Pin
Mairaaj Khan23-Jun-06 23:56
professionalMairaaj Khan23-Jun-06 23:56 
Questionunused space Pin
manolomachin23-Jun-06 13:32
manolomachin23-Jun-06 13:32 
AnswerRe: unused space Pin
Mairaaj Khan23-Jun-06 23:41
professionalMairaaj Khan23-Jun-06 23:41 
GeneralRe: unused space Pin
manolomachin26-Jun-06 5:18
manolomachin26-Jun-06 5:18 
AnswerRe: unused space Pin
Mike Dimmick27-Jun-06 0:28
Mike Dimmick27-Jun-06 0:28 
GeneralRe: unused space Pin
manolomachin28-Jun-06 8:54
manolomachin28-Jun-06 8:54 
The problem isn't with the size of the log file. Look, the sizes of the files are:
stadata.mdf 20,351,680 KB
stadata_log.ldf 4,224 KB

The problem is the quantity of space tha SQL reserves for its grow. When I check the space used (sp_spaceused), the results are:


reserved data index_size unused
------------------ ------------------ ------------------ ------------------
17862602 KB 4216416 KB 4368184 KB 9278002 KB


I found one solution:
1.- Run shrinkdatabase (moving pages to the begining of the file)
2.- Full backup
3.- Delete DB
4.- Restore Database
5.- Shrinkdatabase again (moving pages to the begining of the file)

When I did these steps, The size decreases to 16 Gb, I repeat the steps, and the files decreases to 13 GB, again and 10 Gb and again and 8 Gb, and I stop,
and the unused space is 270,800 Kb.

Now I will use maintanence plain to avoid the DB grow again

Thanks for your help



Manuel
QuestionSQL Update problem I'm still having. Pin
PyroManiak23-Jun-06 8:59
PyroManiak23-Jun-06 8:59 
QuestionRe: SQL Update problem I'm still having. Pin
Alexander Wiseman23-Jun-06 9:15
Alexander Wiseman23-Jun-06 9:15 
AnswerRe: SQL Update problem I'm still having. Pin
PyroManiak23-Jun-06 9:53
PyroManiak23-Jun-06 9:53 
GeneralRe: SQL Update problem I'm still having. Pin
Alexander Wiseman23-Jun-06 10:59
Alexander Wiseman23-Jun-06 10:59 
GeneralRe: SQL Update problem I'm still having. Pin
PyroManiak23-Jun-06 12:35
PyroManiak23-Jun-06 12:35 
GeneralRe: SQL Update problem I'm still having. Pin
Alexander Wiseman23-Jun-06 13:20
Alexander Wiseman23-Jun-06 13:20 
Questiondatabase newbie; what do i need in order to accomplish the following simple application Pin
katsolimon23-Jun-06 6:19
katsolimon23-Jun-06 6:19 
AnswerRe: database newbie; what do i need in order to accomplish the following simple application Pin
Kschuler23-Jun-06 9:22
Kschuler23-Jun-06 9:22 
GeneralRe: database newbie; what do i need in order to accomplish the following simple application Pin
katsolimon23-Jun-06 11:21
katsolimon23-Jun-06 11:21 
QuestionAlter column? Pin
Kschuler23-Jun-06 6:16
Kschuler23-Jun-06 6:16 
AnswerRe: Alter column? Pin
Eric Dahlvang23-Jun-06 6:26
Eric Dahlvang23-Jun-06 6:26 
GeneralRe: Alter column? Pin
Kschuler23-Jun-06 8:57
Kschuler23-Jun-06 8:57 
Questionnot sure of advantages of functions over stored procedures Pin
sishya23-Jun-06 2:33
sishya23-Jun-06 2:33 
AnswerRe: not sure of advantages of functions over stored procedures Pin
J4amieC23-Jun-06 3:11
J4amieC23-Jun-06 3:11 
GeneralRe: not sure of advantages of functions over stored procedures Pin
Colin Angus Mackay23-Jun-06 3:42
Colin Angus Mackay23-Jun-06 3:42 
GeneralRe: not sure of advantages of functions over stored procedures Pin
J4amieC26-Jun-06 2:49
J4amieC26-Jun-06 2:49 
GeneralRe: not sure of advantages of functions over stored procedures Pin
Colin Angus Mackay26-Jun-06 8:25
Colin Angus Mackay26-Jun-06 8:25 

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.