SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Estimating Your Space Needs


Estimating Your Space Needs

Author
Message
Andre Vigneau
Andre Vigneau
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 Visits: 5
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/AVigneau/estimatingyourspaceneeds.asp


Kindest Regards,

Andre Vigneau MCSE, MCDBA

David.Poole
David.Poole
SSCertifiable
SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)SSCertifiable (7.6K reputation)

Group: General Forum Members
Points: 7595 Visits: 3285

Nice article.

In all the articles that mention planning storage space I have never yet seen one that mentions archiving and removing obsolete data to conserve space.

From my own experience I have seen a large number of databases where users insist that old data is needed and absolutely vital to the business but in reality it is almost never accessed.

I have seen servers and infrastructure upgraded at vast cost to retain obsolete data.



LinkedIn Profile

Newbie on www.simple-talk.com
williamhoos@yahoo.com
williamhoos@yahoo.com
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 1

I once saw some software that automated the functions of the excel spreadsheet in this article, but can't find it again. Anyone familiar with it.

I also need the same type of information for estimating server processor and memory requirements. Anyone have a good reference?





mikey
mikey
SSC Journeyman
SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)

Group: General Forum Members
Points: 77 Visits: 1

When trying to run the DB script on a Database - I get an error

"Server: Msg 8115, Level 16, State 2, Line 19
Arithmetic overflow error converting expression to data type int."

Any ideas why ?

The line that Query Analyser jumps to is the start of the huge select statement.

select DT1.TABLE_NAME





mikey
mikey
SSC Journeyman
SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)SSC Journeyman (77 reputation)

Group: General Forum Members
Points: 77 Visits: 1

Haev a quick investigation - one of the tables has a datatype of image and is trying to sum the image size which is then greater than an int.

This is for the section relating to the fixed data size.

select CASE WHEN COLUMN_DATATYPE = 'int' then 4
WHEN COLUMN_DATATYPE = 'bigint' then 8
WHEN COLUMN_DATATYPE = 'smallint' then 2
WHEN COLUMN_DATATYPE = 'tinyint' then 1
WHEN COLUMN_DATATYPE = 'datetime' then 8
WHEN COLUMN_DATATYPE in ('ntext','text') then 16
WHEN COLUMN_DATATYPE like 'var%' then 0
else COLUMN_LENGTH end AS Fixed_Data_Size
,*
from DST_SCHEMATABLE
where TABLE_NAME not like 'dst_%'
AND COLUMN_DATATYPE not LIKE 'n[c-b-v]%'

Andre: For my purposes I can remove add something in the script to exclude image datatypes. So need to take this into account when runing the sample.

regards,





Andre Vigneau
Andre Vigneau
SSC Rookie
SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)SSC Rookie (33 reputation)

Group: General Forum Members
Points: 33 Visits: 5

The query I posted does not treat image datatype. So if you have images stored in your database that is the message you will get.

You can modify the query to treat image datatype as text or ntext datatypes by replacing in the query this

('ntext','text')

by this

('ntext','text','image')

And then it should run fine. Didn't see much image into databases lately my mistake. But the article is to give you all a starting point to begin gathering numbers to help you justify your storage needs. Some details could be missing ... like image datatype.

Sorry about that I see how to have the script corrected.

Regards




Kindest Regards,

Andre Vigneau MCSE, MCDBA

tbredeme
tbredeme
SSC Eights!
SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)SSC Eights! (904 reputation)

Group: General Forum Members
Points: 904 Visits: 78
Excellent timing! I am currently planning a move to a SAN environment and have been using the "best guess" model to plan the volumes. It's nice to finally be able to document my needs and I'm sure that this will also help my case when I submit my justification to the purchasing department.

BTW: Suprisingly, my "best guess" was only 10GB over the calculated estimate: mine - 750GB, calculated 739.251GB.

Artificial Intelligence stands no chance against Natural Stupidity.
Leendert van Staalduinen
Leendert van Staalduinen
Valued Member
Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)Valued Member (71 reputation)

Group: General Forum Members
Points: 71 Visits: 397

Very impressive. This is not what we do in a lost after-noon, do we ?

I consider myself as pretty proficient in T-SQL, but for me these procedures are too complicated. In spite of all the databases I have built the last few years (all based on quite a few non-obvious T-SQL stored procedures), I must confess that I do not understand how these procedures have been built up.

So, I must trust Mr. Andre Vigneau for his professionality (no reason to doubt about it).

By the way: in order to have the procedure run, I had to replace three times "('ntext', 'text')" with "('ntext', 'text', 'image')" in the final Stored Procedure.

Leendert.


lhurst
lhurst
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 63
How can I obtain a copy of the query & spreadsheet referenced in this article?

Thanks!
william.robertt
william.robertt
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 2
The link to Excel is broken, anyone knows what is the new link?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search