Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 16th, 2010, 05:01 PM
Authorized User
 
Join Date: Oct 2010
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default SQL server size

Hi Imar,

I have a question about the size of SQL Server database. If I use the example project in your book and then let's say useres will enter about 50 photos a day as an average then what is the size of database that could help for 1 yeark taking into acount some comments from use on photos let's say 10 cmments on every photo.
Reply With Quote
  #2 (permalink)  
Old November 16th, 2010, 05:10 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Since the photo's are not stored in the database, it won't be much. Tens of megabytes at the most I think.

But the only way to find out for sure is to test it. You can use EF to insert hundreds of fake pictures and see how the database grows,

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old November 16th, 2010, 05:14 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

??? Can't you guesstimate it, Imar?

If the photos aren't stored in the DB, then you must be storing the image names, and you can surely come up with a guess as to average record size, no? Or are there other fields in the table(s) that are highly variable in size?
Reply With Quote
  #4 (permalink)  
Old November 16th, 2010, 05:21 PM
Authorized User
 
Join Date: Oct 2010
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Since the photo's are not stored in the database, it won't be much. Tens of megabytes at the most I think.

But the only way to find out for sure is to test it. You can use EF to insert hundreds of fake pictures and see how the database grows,

Cheers,

Imar
In this case what type of database you recommened SQL Server Express (which most people do not recommened I do not why) or the web edition or which exactly?
Reply With Quote
  #5 (permalink)  
Old November 16th, 2010, 05:43 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
Or are there other fields in the table(s) that are highly variable in size?
Yes, there are. Each photo ahs predictable fields (ImageUrl, AlbumId, CreateDateTime etc) but also a Description and Tooltip field. The Description is an nvarchar(max) so I guess it all depends on what you have to say about the pic ;-)

Quote:
In this case what type of database you recommened SQL Server Express (which most people do not recommened I do not why) or the web edition or which exactly?
In terms of size, it doesn't matter. They all use the same engine under the hood. It all comes down to licensing. Express could be an option for a small site, but is limited in database size (10G if I recall correcty) and CPU (1) and lacks many of the more advanced features. For a comparison, take a look here: http://www.microsoft.com/sqlserver/2.../editions.aspx

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #6 (permalink)  
Old November 16th, 2010, 06:55 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

In any case, unless you are hosting the site yourself (or have a dedicated or semi-dedicated server), you should almost surely just use whichever version of SQL Server comes as part of your hosting package.

Quote:
I guess it all depends on what you have to say about the pic ;-)
Nice! LOL! Great answer!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between SQL Server 2000 and SQL Server 2005 leena K SQL Server 2005 4 March 31st, 2009 09:07 AM
sql query builder windw size problem the_dude ASP.NET 2.0 Basics 0 January 25th, 2007 01:37 PM
migrating from sql server 2000 to sql server 2005 abinashpatra SQL Server 2005 2 December 1st, 2006 03:45 PM
SQL Server Database Size itHighway Classic ASP Basics 1 February 12th, 2005 01:12 AM



All times are GMT -4. The time now is 09:45 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.