Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Estimating Your Space Needs Expand / Collapse
Author
Message
Posted Monday, January 17, 2005 9:41 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, November 21, 2008 9:10 AM
Points: 11, 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

Post #156019
Posted Tuesday, January 25, 2005 2:07 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 3:23 PM
Points: 2,907, Visits: 1,830

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
Post #157436
Posted Tuesday, January 25, 2005 9:11 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, June 27, 2006 12:41 PM
Points: 29, 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?




Post #157532
Posted Tuesday, January 25, 2005 9:14 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, February 26, 2007 6:26 AM
Points: 67, 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

 

 

 

 

 




Post #157534
Posted Tuesday, January 25, 2005 9:39 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, February 26, 2007 6:26 AM
Points: 67, 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,

 




Post #157543
Posted Tuesday, January 25, 2005 9:53 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, November 21, 2008 9:10 AM
Points: 11, 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

Post #157548
Posted Wednesday, January 25, 2006 8:01 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Thursday, June 25, 2009 6:14 AM
Points: 876, 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.
Post #253411
Posted Wednesday, January 25, 2006 11:50 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Sunday, November 17, 2013 1:19 PM
Points: 29, 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.

Post #253519
Posted Thursday, October 18, 2007 2:23 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, June 13, 2013 8:51 AM
Points: 2, Visits: 63
How can I obtain a copy of the query & spreadsheet referenced in this article?

Thanks!
Post #412414
Posted Wednesday, April 2, 2008 3:34 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, May 2, 2008 11:37 AM
Points: 1, Visits: 2
The link to Excel is broken, anyone knows what is the new link?
Post #478309
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse