Click here to Skip to main content
15,887,683 members
Home / Discussions / Database
   

Database

 
QuestionHow Much Space Is Wasted In Unused Fields In SQL Server? Pin
Roger Wright19-Oct-11 19:21
professionalRoger Wright19-Oct-11 19:21 
AnswerRe: How Much Space Is Wasted In Unused Fields In SQL Server? PinPopular
Mycroft Holmes19-Oct-11 20:17
professionalMycroft Holmes19-Oct-11 20:17 
GeneralRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Chris Meech20-Oct-11 4:01
Chris Meech20-Oct-11 4:01 
GeneralRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Roger Wright20-Oct-11 5:21
professionalRoger Wright20-Oct-11 5:21 
AnswerRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Chris C-B19-Oct-11 22:30
Chris C-B19-Oct-11 22:30 
GeneralRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Roger Wright20-Oct-11 5:27
professionalRoger Wright20-Oct-11 5:27 
GeneralRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Chris C-B20-Oct-11 6:01
Chris C-B20-Oct-11 6:01 
AnswerRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Eddy Vluggen20-Oct-11 2:09
professionalEddy Vluggen20-Oct-11 2:09 
Roger Wright wrote:
But if 90% of the transformers in use have 40% of their data fields set to null,
will they still consume the same storage space as they would if all fields
contained data?

Don't know, but it'd be more logical to have the extra data in a separate table that you link to.

Transformer
Number
EntryDate
etc..

TransformerData
Number
Memo

Roger Wright wrote:
I really hate wasted space

Databases aren't optimized to use the minimum in space, but to deliver the data in a speedy way and guarantee integrity.

If you want to have a small-sized database, you'd only put the references in there and keep your memo's in a separate (compressed) file. That way the database won't include the memo's when reserving space. Databases don't reclaim the space when you delete a record; hence the suggestion to save your data outside the database.

Would also mean that you lose a part of the functionality.
Bastard Programmer from Hell Suspicious | :suss:

GeneralRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Roger Wright20-Oct-11 5:28
professionalRoger Wright20-Oct-11 5:28 
GeneralRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Eddy Vluggen20-Oct-11 8:01
professionalEddy Vluggen20-Oct-11 8:01 
AnswerRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
jschell20-Oct-11 9:05
jschell20-Oct-11 9:05 
GeneralRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
Roger Wright20-Oct-11 10:25
professionalRoger Wright20-Oct-11 10:25 
GeneralRe: How Much Space Is Wasted In Unused Fields In SQL Server? Pin
jschell21-Oct-11 10:54
jschell21-Oct-11 10:54 
QuestionSQL Query Select Pin
reogeo200817-Oct-11 21:26
reogeo200817-Oct-11 21:26 
AnswerRe: SQL Query Select Pin
Blue_Boy17-Oct-11 22:34
Blue_Boy17-Oct-11 22:34 
GeneralRe: SQL Query Select Pin
AditSheth17-Oct-11 23:09
AditSheth17-Oct-11 23:09 
AnswerRe: SQL Query Select PinPopular
Mycroft Holmes17-Oct-11 22:53
professionalMycroft Holmes17-Oct-11 22:53 
AnswerRe: SQL Query Select Pin
Niladri_Biswas26-Oct-11 16:27
Niladri_Biswas26-Oct-11 16:27 
QuestionDB2 Commands Pin
Manivannan Dheena17-Oct-11 19:17
Manivannan Dheena17-Oct-11 19:17 
AnswerRe: DB2 Commands Pin
Manivannan Dheena17-Oct-11 23:52
Manivannan Dheena17-Oct-11 23:52 
Questionisnull in linq where condition Pin
yesu prakash13-Oct-11 20:02
yesu prakash13-Oct-11 20:02 
AnswerRe: isnull in linq where condition Pin
Johan Hakkesteegt13-Oct-11 21:37
Johan Hakkesteegt13-Oct-11 21:37 
AnswerRe: isnull in linq where condition Pin
Niladri_Biswas26-Oct-11 16:14
Niladri_Biswas26-Oct-11 16:14 
QuestionData warehouse Pin
coder199113-Oct-11 1:25
coder199113-Oct-11 1:25 
QuestionLinked Server Query Returning No Records Pin
Frank Lepkowski12-Oct-11 3:26
Frank Lepkowski12-Oct-11 3:26 

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.