Challange: The sample legacy database from hell

I need a legacy database for my NHibernate course. I can take some of the creepy ones in the NHibernate test suite, but I think that would be evil to the students.

Anyone can come up with a good (um, bad) legacy database that is also small enough to be a good example?

Print | posted on Wednesday, February 18, 2009 8:41 AM

Feedback


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 10:56 AM Kola

Ingres?


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 11:22 AM Tuna Toksoz

Northwind, AdventureWorks?


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 11:38 AM Chris Canal

I'm currently using the EVE (http://www.eve-online.com/) database to teach my little brother C#/ASP.NET MVC/NHibernate and create an app for his clan. It's an interesting database: http://wiki.eve-id.net/CCP_Database_Dump_Resources


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 1:59 PM Driesie

I have used AdventureWorks previously for that type of thing.It works for sqlCE (so easy to port your examples without having a dependency). It also contains some "interesting" scenarios like string primary keys etc.


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 2:09 PM Jason

it seems most accounting packages have terrible db schemas which reflect flat files more than anything else. not that you want to recreate a db, but maybe harvesting some segments of an accounting db schema is the way to go.


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 2:43 PM Kevin McDonnell

If you've got a copy of a Remedy database. They still give me nightmares.


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 3:21 PM julian jelfs

Well you've seen ours and it has some quirks. Too big to use but I would say it would be nice to throw in some composite key stuff because that's the one thing we really struggled with when trying to use NHibernate.


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 4:07 PM Art Johnson

I wish I could hook you up with this DB2/AS400/ISeries hell-hole we have...


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 4:40 PM A developer in sorrow

In the history of databases, there have always been rumblings of a DB which was so poorly designed, so poorly maintained, and just plain evil. Well good sir, I have come into contact with such a DB, and I am clutched within its dark fingers.

A putrid design created deep within the bowels of hell; some say forged by the evil one himself. This is a DB which has wreaked its evil on it's users for years slaying anyone who has come into contact with it - DBA, developer, architect; none stood a chance.

But alas, I cannot share its design. Letting such vile loose in the world would be a travesty and a cross which I just could not bear.

You shall have to look elsewhere on your search of a database from hell... this one is just too malevolent.


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 6:38 PM cristian

AdventureWorksLT, small enough to avoid dizziness, but "Relational" enough to show NHibernate coolness ;)


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 7:00 PM splotter

If you know Assyst!!! Surely it's database came from hell!!! They use hibernate for their mapping though. :0


Gravatar

# re: Challange: The sample legacy database from hell 2/18/2009 7:05 PM Alessandro Riolo

From time to time, I have seen DBs without a single foreign key declared (now that I think about that, wasn't the one of SAP R/3 one of those?).
Probably the worst was having a table, with a single column acting as primary key, holding strings of guillemets enclosed substrings (as in "«A234..»«B234..»«E454..»"), the latters being the logical foreign key to max 3 tables (min 0) from a collection of 10 available, and the table being referenced was decided from the initial character of the substrings.
I was said this "design" decision was taken because the application had been ported from some previous platform ..


Gravatar

# re: Challange: The sample legacy database from hell 2/19/2009 8:01 PM configurator

Alessandro, was that `previous platform` MS Word? These guillemets sure look like Word form fields :P


Gravatar

# re: Challange: The sample legacy database from hell 2/20/2009 8:11 AM Luis Rocha

What about Chinook Database?

http://www.codeplex.com/ChinookDatabase

It is a sample database available for SQL Server, SQL Compact, Oracle and MySQL. You could demo using different database servers. It is based on iTunes store including tables for artists, albums, media tracks, invoices and customers. It is a small, simple and can be created by executing a single SQL script. You can even generate the SQL script using the data from your own iTunes library if you want.


Gravatar

# re: Challange: The sample legacy database from hell 2/20/2009 11:09 AM Johan Andersson

MSSQL Product Sample Databases @ CodePlex: http://www.codeplex.com/MSFTDBProdSamples

However, it seems only to be AdventureWorks, not all the other fictious companies they use commonly (Wingtip Toys, Woodgrove Bank, Northwind Traders, etc.)

- Johan


Gravatar

# re: Challange: The sample legacy database from hell 2/20/2009 7:38 PM Alessandro Riolo

Configurator, as I was there (a very big government office) to write an Office Automation application (*), I wouldn't be surprised if you are right, although I never even enquired .. I was already too shellshocked from what I was seeing, I guess ..

(*) no, I don't do that anymore, it has been way more than 10 years now ;)

Comments have been closed on this topic.