Databases are formed, primarily, from tables with each table containing columns and rows similar in appearance to that of a spreadsheet. This section will detail some of the things that you need to keep in mind when creating databases and the structure contained within them.
The very first thing is to create your database. This is probably the easiest part but here is a list of things that you should keep in mind.
– Database files can become pretty big depending on the amount and type of data it will be storing. If you are storing file data within the database then you will need a lot more space for the database file to grow. Ensure that the locations of the database files are in a place where they will have enough room to grow.
– By default transaction logging is set to Full when you first create a database. If you do not need transaction logging then you should consider switching this to Simple sooner rather than later. Remember: transaction logs can get very big, very fast and can often be many times the size of the actual database.
– If the database is going to have a lot of systems connecting to it and you have transaction logs enabled, it could be worthwhile storing the database file and transaction log file on separate physical disks. This will help with performance when it comes to I/O hits to the disks themselves. Remember, disks buffer their requests the same as most other things and can only perform one I/O task at a time. Having the files on separate disks will allow the log file to be updated at (almost) the same time as the database file.
– Collation tells the database how to store the data depending on the character sets being used. Most of the time you will have no need to touch this but it is useful to know a few key facts:
That’s it for this post. It is only a small taster of some of the key things you should consider when creating your database. I hope this post is helpful and as usual, constructive criticism and suggestions are welcome.