Navigate
Home
ArticleWiki
Forum
Newsletter
Links
Tech News
Welcome Guest.
Username:

Password:

Remember me

DB size
Welcome, Guest. Please login or register.
February 08, 2012, 11:09:37 AM
11513 Posts in 1262 Topics by 496 Members
Latest Member: Beerdernill
Experts Round Table Network  |  Databases  |  Access  |  DB size « previous next »
Pages: [1]
Author Topic: DB size  (Read 1810 times)
keneso
Site Builder

Offline Offline

Posts: 32


WWW
« on: October 01, 2005, 06:23:13 AM »

How big would a DB get with the following info in it?

id
name
mail
fax
tel.
in
out
position

Per let's say 20K ids?

Thank you
Logged
CrYpTiC_MauleR
Site Builder

Offline Offline

Posts: 501



WWW
« Reply #1 on: October 01, 2005, 08:41:20 AM »

you could you please repost it but with column types and attributes. Those all effect size.
Logged

[x] Fight | www.crypticmauler.com
"You must be
keneso
Site Builder

Offline Offline

Posts: 32


WWW
« Reply #2 on: October 01, 2005, 09:08:06 AM »

Sorry, I forgot to mention I don't know anything about DBs, among other stuff  :)

I was thinking of an output page that will show the info this way

Name | name@xyz | 123-4567 | 123-7654 | 7.30am ! 8.25am | 001

Does that help?
Logged
Kevin3NF
Mentor

Offline Offline

Posts: 12


WWW
« Reply #3 on: October 01, 2005, 06:55:23 PM »

Need the field types and sizes, as well as the platform.

An Access text(255) is different than a SQL Server varchar(255)
and a SQL Server varchar(255) is different from a SQL Server char(255)...
Logged

For the love of Pete...include the version of the software you are using in your question :-)
Anonymous
Guest
« Reply #4 on: October 03, 2005, 03:49:11 AM »

And some DBs will only create pages of rows, not just rows. A page MAY contain a LOT of rows.

If you are using a varchar column, and the row will be examined/filtered a LOT, this will take more time to process (overall) than a column that is char (fixed length). Though a fixed length column will take more space as it contains all those annoying trailing blanks.

I would use varchar on columns whose values can genuinely be variable in length. Columns which are limited in size should tend towards being fixed in length. There are no hard rules on this though, just preferences.

I read that there should be a limit to the amount of dead space used in a table. Not sure where, but probably in MS SQL BOL somewhere.
Logged
keneso
Site Builder

Offline Offline

Posts: 32


WWW
« Reply #5 on: October 06, 2005, 12:28:04 PM »

Thanks for the input, looks like I have to understand lots of stuff before venturing into this project.
Logged
VGR
Mentor

Offline Offline

Posts: 724



WWW
« Reply #6 on: August 28, 2006, 07:36:23 AM »

naaaah ;-)

All the people above are either too rigid to provide an answer, or make fun out of you :D

You ***can*** assess grossly the size of your DB; I would personally answer quickly "this is peanuts anyway", but here we go :

I am using standard SQL row types definitions. For the varchar vs char "difference", just memorize that char(x) is what you mean by a "textual field of length x" (always x, because it's padded with whitespaces up to length x), and that "varchar(x)" is just the same except for the padding ;-))
   
So :   

id -> integer(4)
name -> char(30)
mail -> char(30)
fax -> char(15)
tel. -> char(15)
in -> time = char(8)
out -> time = char(8)
position -> char(10)

Per 20K ids, (rows) this amounts to 20k*110 octets = 2200 k octets = a bit above 2 MB

regards
Logged

techie overlord, answers all kind of questions on http://www.europeanexperts.org
Pages: [1]
« previous next »
    Jump to: